mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
phpstan support (#250)
* phpstan v1 + workflow * Fix intend * More fixes * Update phpstan.neon * phpstan level 2 * Move errors ignoring into phpstan.neon * phpstan level 3 * Don't ignore templates folder * Something from level 4 * Update phpstan.neon
This commit is contained in:
@@ -11,13 +11,13 @@ function query($query)
|
||||
error($error_);
|
||||
$error = true;
|
||||
}
|
||||
|
||||
|
||||
return !$error;
|
||||
}
|
||||
|
||||
// define php version id if its not already
|
||||
if(!defined('PHP_VERSION_ID')) {
|
||||
$version = explode('.', PHP_VERSION);
|
||||
$version = array_map('intval', explode('.', PHP_VERSION));
|
||||
|
||||
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
|
||||
}
|
||||
@@ -97,4 +97,4 @@ function win_is_writable($path) {
|
||||
unlink($path);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user