File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 14
14
// Prepare Global Environment
15
15
// -----------------------------------------------------------------------------
16
16
\mb_internal_encoding ('UTF-8 ' );
17
- \error_reporting (( E_ALL | E_STRICT ) ^ E_DEPRECATED );
17
+ \error_reporting (E_ALL ^ E_DEPRECATED );
18
18
19
19
20
20
// -----------------------------------------------------------------------------
64
64
$ insidePhar = \str_starts_with (__FILE__ , 'phar:// ' );
65
65
$ vendorPath = \dirname ($ vendorPath ) . '/../ ' ;
66
66
$ versionFile = $ vendorPath . '/version.json ' ;
67
- $ appPath = \realpath ($ vendorPath );
68
- if ($ insidePhar ) {
69
- $ appPath = \getcwd ();
70
- }
67
+ $ appPath = $ insidePhar ? \getcwd () : \realpath ($ vendorPath );
68
+
71
69
$ version = \file_exists ($ versionFile )
72
70
? \json_decode (\file_get_contents ($ versionFile ), true )
73
71
: [
Original file line number Diff line number Diff line change 45
45
"spiral/code-style" : " ^2.2.2" ,
46
46
"phpunit/phpunit" : " ^10.2" ,
47
47
"rector/rector" : " ^2.0" ,
48
- "vimeo/psalm" : " ^5.8 "
48
+ "vimeo/psalm" : " ^6.0 "
49
49
},
50
50
"autoload" : {
51
51
"psr-4" : {
You can’t perform that action at this time.
0 commit comments