Merge pull request #45 from mr-feek/rename-ide-helper-stub-files

change file extension of ide helper files so phpstorm doesnt analyze them
This commit is contained in:
Matthew Brown 2020-04-18 17:54:26 -04:00 committed by GitHub
commit 22c9204d3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
composer.phar composer.phar
/vendor/ /vendor/
composer.lock composer.lock
src/cache/*.php src/cache/*.stubphp
.DS_Store .DS_Store

View File

@ -75,16 +75,16 @@ class Plugin implements PluginEntryPointInterface
$stubs_generator_command->setLaravel($app); $stubs_generator_command->setLaravel($app);
@unlink($cache_dir . 'stubs.php'); @unlink($cache_dir . 'stubs.stubphp');
$fake_filesystem->setDestination($cache_dir . 'stubs.php'); $fake_filesystem->setDestination($cache_dir . 'stubs.stubphp');
$stubs_generator_command->run( $stubs_generator_command->run(
new \Symfony\Component\Console\Input\ArrayInput([]), new \Symfony\Component\Console\Input\ArrayInput([]),
new \Symfony\Component\Console\Output\NullOutput() new \Symfony\Component\Console\Output\NullOutput()
); );
$registration->addStubFile($cache_dir . 'stubs.php'); $registration->addStubFile($cache_dir . 'stubs.stubphp');
} }
/** /**
@ -107,16 +107,16 @@ class Plugin implements PluginEntryPointInterface
$meta_generator_command->setLaravel($app); $meta_generator_command->setLaravel($app);
@unlink($cache_dir . 'meta.php'); @unlink($cache_dir . 'meta.stubphp');
$fake_filesystem->setDestination($cache_dir . 'meta.php'); $fake_filesystem->setDestination($cache_dir . 'meta.stubphp');
$meta_generator_command->run( $meta_generator_command->run(
new \Symfony\Component\Console\Input\ArrayInput([]), new \Symfony\Component\Console\Input\ArrayInput([]),
new \Symfony\Component\Console\Output\NullOutput() new \Symfony\Component\Console\Output\NullOutput()
); );
$registration->addStubFile($cache_dir . 'meta.php'); $registration->addStubFile($cache_dir . 'meta.stubphp');
} }
/** /**
@ -147,9 +147,9 @@ class Plugin implements PluginEntryPointInterface
$models_generator_command->setLaravel($app); $models_generator_command->setLaravel($app);
@unlink($cache_dir . 'models.php'); @unlink($cache_dir . 'models.stubphp');
$fake_filesystem->setDestination($cache_dir . 'models.php'); $fake_filesystem->setDestination($cache_dir . 'models.stubphp');
$models_generator_command->run( $models_generator_command->run(
new \Symfony\Component\Console\Input\ArrayInput([ new \Symfony\Component\Console\Input\ArrayInput([
@ -158,7 +158,7 @@ class Plugin implements PluginEntryPointInterface
new \Symfony\Component\Console\Output\NullOutput() new \Symfony\Component\Console\Output\NullOutput()
); );
$registration->addStubFile($cache_dir . 'models.php'); $registration->addStubFile($cache_dir . 'models.stubphp');
self::$model_classes = $models_generator_command->getModels(); self::$model_classes = $models_generator_command->getModels();
} }