-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify and update phpstan configuration #99
Conversation
On PHP 7.3 with
How could it be? |
Could it be this change?
|
@szepeviktor Thanks for the clean-up and I think phpstan did not understand the |
I think |
...I see! If we teach |
@voku Please see the conversion on this matter: phpstan/phpstan#3576 (comment) What do you think about |
|
1M <?php
$start = microtime(true);
for ($run = 0; $run < 1e6; $run += 1) {
$exists = function_exists('mb_str_split');
}
echo microtime(true) - $start, "\n"; So 1 call takes 64 nanosec :) |
… with ```\function_exists('mb_str_split')``` -> #99 (comment)
@szepeviktor I added the |
No! That is fine. Currently the only solution is to define the function for PHPStan only. parameters:
scanFiles:
- tests/phpstan/functions.php A stub is enough. |
Maybe your PHP version is not 7.3 ... |
Makes PHPStan return "OK"
This change is