Skip to content

Commit fa0dc30

Browse files
committed
Fix PHP 8.4 compatibility
1 parent 32cfa14 commit fa0dc30

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Prepare Global Environment
1515
// -----------------------------------------------------------------------------
1616
\mb_internal_encoding('UTF-8');
17-
\error_reporting((E_ALL | E_STRICT) ^ E_DEPRECATED);
17+
\error_reporting(E_ALL ^ E_DEPRECATED);
1818

1919

2020
// -----------------------------------------------------------------------------
@@ -64,10 +64,8 @@
6464
$insidePhar = \str_starts_with(__FILE__, 'phar://');
6565
$vendorPath = \dirname($vendorPath) . '/../';
6666
$versionFile = $vendorPath . '/version.json';
67-
$appPath = \realpath($vendorPath);
68-
if ($insidePhar) {
69-
$appPath = \getcwd();
70-
}
67+
$appPath = $insidePhar ? \getcwd() : \realpath($vendorPath);
68+
7169
$version = \file_exists($versionFile)
7270
? \json_decode(\file_get_contents($versionFile), true)
7371
: [

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"spiral/code-style": "^2.2.2",
4646
"phpunit/phpunit": "^10.2",
4747
"rector/rector": "^2.0",
48-
"vimeo/psalm": "^5.8"
48+
"vimeo/psalm": "^6.0"
4949
},
5050
"autoload": {
5151
"psr-4": {

0 commit comments

Comments
 (0)