update baseline files in tests

this should get CI green again
This commit is contained in:
Niels Vanpachtenbeke 2022-02-16 16:57:00 +01:00
parent 6236dc3f5e
commit 4032ba0091
3 changed files with 45 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
<files psalm-version="4.20.0@f82a70e7edfc6cf2705e9374c8a0b6a974a779ed">
<file src="app/Broadcasting/ExampleChannel.php">
<InvalidReturnType occurrences="1">
<code>array|bool</code>
@ -37,14 +37,41 @@
<code>ExampleController</code>
</UnusedClass>
</file>
<file src="app/Http/Kernel.php">
<NonInvariantDocblockPropertyType occurrences="3">
<code>$middleware</code>
<code>$middlewareGroups</code>
<code>$routeMiddleware</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Http/Middleware/EncryptCookies.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$except</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Http/Middleware/ExampleMiddleware.php">
<UnusedClass occurrences="1">
<code>ExampleMiddleware</code>
</UnusedClass>
</file>
<file src="app/Http/Middleware/PreventRequestsDuringMaintenance.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$except</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Http/Middleware/TrimStrings.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$except</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Http/Middleware/TrustProxies.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$headers</code>
<code>$proxies</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Http/Middleware/VerifyCsrfToken.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$except</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Http/Requests/ExampleRequest.php">
@ -63,8 +90,10 @@
</UnusedClass>
</file>
<file src="app/Models/User.php">
<NonInvariantDocblockPropertyType occurrences="1">
<NonInvariantDocblockPropertyType occurrences="3">
<code>$casts</code>
<code>$fillable</code>
<code>$hidden</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Observers/ExampleObserver.php">
@ -77,6 +106,16 @@
<code>ExamplePolicy</code>
</UnusedClass>
</file>
<file src="app/Providers/AuthServiceProvider.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$policies</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Providers/EventServiceProvider.php">
<NonInvariantDocblockPropertyType occurrences="1">
<code>$listen</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="app/Providers/ExampleProvider.php">
<UnusedClass occurrences="1">
<code>ExampleProvider</code>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
<files psalm-version="4.20.0@f82a70e7edfc6cf2705e9374c8a0b6a974a779ed">
<file src="app/Console/Kernel.php">
<PropertyNotSetInConstructor occurrences="1">
<code>Kernel</code>
@ -29,9 +29,6 @@
</UnusedClass>
</file>
<file src="app/Jobs/ExampleJob.php">
<PropertyNotSetInConstructor occurrences="1">
<code>ExampleJob</code>
</PropertyNotSetInConstructor>
<UnusedClass occurrences="1">
<code>ExampleJob</code>
</UnusedClass>

View File

@ -6,12 +6,12 @@ echo "Cleaning Up"
rm -rf ../lumen/
echo "Installing Lumen"
composer create-project --quiet --prefer-dist "laravel/lumen" ../lumen
composer create-project laravel/lumen ../lumen 8.* --quiet --prefer-dist
cd ../lumen/
echo "Adding package from source"
sed -e 's|"type": "project",|&"repositories": [ { "type": "path", "url": "../psalm-plugin-laravel" } ],|' -i composer.json
COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*"
COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*" -W
echo "Analyzing Lumen"
./vendor/bin/psalm -c ../psalm-plugin-laravel/tests/lumen-test-psalm.xml