phpstan will throw an error because pg_* methods have changed from resource to object in php 8.1 So current var has object|resource dual type and this will fail Added ignore for phpstan in the config file. Also added conditional config file for phpstan where we can set based on current active PHP version baseline file created with --generate-baseline is added for error check
8 lines
210 B
Plaintext
8 lines
210 B
Plaintext
parameters:
|
|
ignoreErrors:
|
|
-
|
|
message: "#^Parameter \\#1 \\$result of function pg_result_error expects resource, object\\|resource\\|true given\\.$#"
|
|
count: 1
|
|
path: www/lib/CoreLibs/DB/SQL/PgSQL.php
|
|
|