Skip to content

Commit a3f4438

Browse files
committed
chore(deps): update PHP dependencies
- Update fully_qualified_strict_types in .php-cs-fixer.php - Update path to PHP binary in composer.json lint scripts - Update Psalm version in psalm-baseline.xml
1 parent 0dc3f60 commit a3f4438

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

.php-cs-fixer.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,32 @@
303303
'import_constants' => false,
304304
'import_functions' => false,
305305
],
306+
'fully_qualified_strict_types' => [
307+
'import_symbols' => false,
308+
'leading_backslash_in_global_namespace' => false,
309+
'phpdoc_tags' => [
310+
// 'param',
311+
// 'phpstan-param',
312+
// 'phpstan-property',
313+
// 'phpstan-property-read',
314+
// 'phpstan-property-write',
315+
// 'phpstan-return',
316+
// 'phpstan-var',
317+
// 'property',
318+
// 'property-read',
319+
// 'property-write',
320+
// 'psalm-param',
321+
// 'psalm-property',
322+
// 'psalm-property-read',
323+
// 'psalm-property-write',
324+
// 'psalm-return',
325+
// 'psalm-var',
326+
// 'return',
327+
// 'see',
328+
// 'throws',
329+
// 'var',
330+
],
331+
],
306332

307333
// https://github.com/kubawerlos/php-cs-fixer-custom-fixers
308334
PhpCsFixerCustomFixers\Fixer\CommentSurroundedBySpacesFixer::name() => true,

_ide_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
namespace {
14-
class ExceptionNotify extends \Guanguans\LaravelExceptionNotify\Facades\ExceptionNotify {}
14+
class ExceptionNotify extends Guanguans\LaravelExceptionNotify\Facades\ExceptionNotify {}
1515
}
1616

1717
namespace Illuminate\Support {

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@
169169
"composer-unused-checker": "@php ./vendor/bin/composer-unused --ansi -v",
170170
"composer-validate": "@composer validate --check-lock --strict --ansi -v",
171171
"facade-lint": "@facade-update --lint",
172-
"facade-update": "/usr/local/opt/php@8.1/bin/php -f ./facade.php -- Guanguans\\\\LaravelExceptionNotify\\\\Facades\\\\ExceptionNotify",
172+
"facade-update": "/opt/homebrew/opt/php@8.1/bin/php -f ./facade.php -- Guanguans\\\\LaravelExceptionNotify\\\\Facades\\\\ExceptionNotify",
173173
"lint": [
174-
"for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec php74 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done",
175-
"for DIR in ./config ./src ./tests; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec php74 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done"
174+
"for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec /opt/homebrew/opt/php@7.4/bin/php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done",
175+
"for DIR in ./config ./src ./tests; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec /opt/homebrew/opt/php@7.4/bin/php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done"
176176
],
177177
"mark-finish": "printf '\\n!\\n!\\t\\033[0;32m%s\\033[0m\\n!\\n\\n' \"Finished\"",
178178
"mark-separate": "printf '\\n!\\n!\\t\\033[0;33m%s\\033[0m\\n!\\n\\n' \"----------------\"",

psalm-baseline.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
2+
<files psalm-version="5.18.0@b113f3ed0259fd6e212d87c3df80eec95a6abf19">
33
<file src="src/Collectors/RequestHeaderCollector.php">
44
<UndefinedMagicMethod>
55
<code>headers</code>
66
</UndefinedMagicMethod>
77
</file>
88
<file src="src/Support/ExceptionContext.php">
9-
<UnusedVariable>
9+
<UndefinedVariable>
1010
<code>$exceptionLine</code>
11-
</UnusedVariable>
11+
<code>$exceptionLine</code>
12+
</UndefinedVariable>
1213
</file>
1314
</files>

0 commit comments

Comments
 (0)