CodeIgniter4
CodeIgniter4 copied to clipboard
Dev: PHPStan "no type specified" errors
There are 473 ignored errors due to "no type specified" in phpstan-baseline.php. These ignored errors should be removed.
You can search for no type specified, no return type specified in phpstan-baseline.php.
Type specified will strict return, most function with multiple return
We can use below in PHP 8.2, is not compabillity another php version
public function isFunction(): string|int {
//
}
We can only change some functions.
Yes, we still support PHP 7.4.
In that case, add @return.
238 items were removed!
473 - 235 = 238
$ grep "type specified" phpstan-baseline.php | wc -l
235
$ grep "type specified" phpstan-baseline.php | wc -l
221
$ grep "no type specified" phpstan-baseline.php | wc -l
224
$ grep "no return type specified" phpstan-baseline.php | wc -l
382