mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
Merge pull request #112 from TheDoctor0/laravel-8
Support for Laravel 8.x
This commit is contained in:
commit
a20a22a136
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -11,8 +11,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php: [7.2, 7.3]
|
||||
illuminate_version: [5.8.*, 6.*, 7.*]
|
||||
php: [7.3, 7.4]
|
||||
illuminate_version: [6.*, 7.*, 8.*]
|
||||
composer_flags: ['', '--prefer-lowest']
|
||||
|
||||
name: PHP ${{ matrix.php }} | Illuminate ${{ matrix.illuminate_version }} | Composer Flags ${{ matrix.composer_flags }}
|
||||
|
@ -6,11 +6,11 @@
|
||||
"php": "^7.2|^8",
|
||||
"ext-simplexml": "*",
|
||||
"barryvdh/laravel-ide-helper": "^2.8.0",
|
||||
"illuminate/container": "5.8.* || ^6.0 || ^7.0",
|
||||
"illuminate/contracts": "5.8.* || ^6.0 || ^7.0",
|
||||
"illuminate/database": "5.8.* || ^6.0 || ^7.0",
|
||||
"illuminate/http": "5.8.* || ^6.0 || ^7.0",
|
||||
"illuminate/support": "5.8.* || ^6.0 || ^7.0",
|
||||
"illuminate/container": "5.8.* || ^6.0 || ^7.0 || ^8.0",
|
||||
"illuminate/contracts": "5.8.* || ^6.0 || ^7.0 || ^8.0",
|
||||
"illuminate/database": "5.8.* || ^6.0 || ^7.0 || ^8.0",
|
||||
"illuminate/http": "5.8.* || ^6.0 || ^7.0 || ^8.0",
|
||||
"illuminate/support": "5.8.* || ^6.0 || ^7.0 || ^8.0",
|
||||
"vimeo/psalm": "^3.13.1",
|
||||
"orchestra/testbench": "^3.8 || ^4.0 || ^5.0 || ^6.0"
|
||||
},
|
||||
|
@ -203,8 +203,8 @@ class Plugin implements PluginEntryPointInterface
|
||||
}
|
||||
|
||||
$resolver = new EngineResolver();
|
||||
$resolver->register('php', function () : PhpEngine {
|
||||
return new PhpEngine();
|
||||
$resolver->register('php', function () use ($fake_filesystem) : PhpEngine {
|
||||
return new PhpEngine($fake_filesystem);
|
||||
});
|
||||
$finder = new FileViewFinder($fake_filesystem, [dirname($file_path) . '/../resources/views']);
|
||||
$factory = new Factory($resolver, $finder, new \Illuminate\Events\Dispatcher());
|
||||
|
Loading…
Reference in New Issue
Block a user