Skip to content

Commit

Permalink
Fix deprecation PHP : strtolower null argument
Browse files Browse the repository at this point in the history
[2023-10-18 07:23:48] php.INFO: Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated {"exception":"[object] (ErrorException(code: 0): Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated at /var/www/html/src/Services/Oai/OaiService.php:51)"} []
  • Loading branch information
plecor committed Oct 18, 2023
1 parent ba30fdc commit 35421c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symfony/src/Services/Oai/OaiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
*/
public function getVerb(Request $request): OaiVerbInterface
{
if (!isset($this->classesVerb[strtolower($request->get('verb'))])) {
if ($request->get('verb') === null || !isset($this->classesVerb[strtolower($request->get('verb'))])) {
return (new BadVerb())->setRequest($request);
}

Expand Down

0 comments on commit 35421c2

Please sign in to comment.