Skip to content

Commit

Permalink
Try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed Jul 31, 2023
1 parent b16ed37 commit 43d39d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified builds/shift-cli
Binary file not shown.
4 changes: 3 additions & 1 deletion src/Tasks/ModelTableName.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class ModelTableName implements Task

public function perform(): int
{
var_dump(count(spl_autoload_functions()));

foreach ($this->findFilesContaining('/^class\s+/m') as $file) {
$contents = file_get_contents($file);

Expand Down Expand Up @@ -60,7 +62,7 @@ private function tableNameFromClassName($class, $pivot)
private function modelClass($file): ?ReflectionClass
{
try {
$class = new ReflectionClass('\\Shift\Cli\\Models\\User');
$class = new ReflectionClass('\\App\\Models\\User');
} catch (ReflectionException $e) {
var_dump('no reflection: ' . $e->getMessage());

Expand Down

0 comments on commit 43d39d6

Please sign in to comment.