fix: Deprecated PHP 8.1 sur `sql_quote(null)` #5231

Merged
marcimat merged 1 commits from issue_deprecated_null_sql_quote into master 1 month ago
Owner

J’avais cette notice depuis un squelette du plugin événement

array('=', 'evenements.id_evenement', sql_quote(($Pile[0]['id_evenement'] ?? null), '','bigint(21) NOT NULL AUTO_INCREMENT'))

=> sql_quote(null, '', ''bigint(21) NOT NULL AUTO_INCREMENT')
=> Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /ecrire/req/sqlite_generique.php on line 2070

Qui applique le intval(null) ensuite (mais après avoir fait la notice).

J’avais cette notice depuis un squelette du plugin événement ```php array('=', 'evenements.id_evenement', sql_quote(($Pile[0]['id_evenement'] ?? null), '','bigint(21) NOT NULL AUTO_INCREMENT')) ``` => `sql_quote(null, '', ''bigint(21) NOT NULL AUTO_INCREMENT')` => Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /ecrire/req/sqlite_generique.php on line 2070 Qui applique le intval(null) ensuite (mais après avoir fait la notice).
marcimat added 1 commit 2 months ago
cy.altern approved these changes 2 months ago
marcimat added 1 commit 1 month ago
marcimat merged commit a1183007d8 into master 1 month ago
marcimat deleted branch issue_deprecated_null_sql_quote 1 month ago

Reviewers

cy.altern approved these changes 2 months ago
The pull request has been merged as a1183007d8.
Sign in to join this conversation.
Loading…
There is no content yet.