Skip to content

Commit

Permalink
Merge pull request #4566 from apphp/master
Browse files Browse the repository at this point in the history
PHP 8 compatibility: Fix passing null to string parameter parameter
  • Loading branch information
marcovtwout authored Sep 30, 2024
2 parents 9d0b1ff + bc0f4d0 commit f0ea6bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Version 1.1.30 under development
- Bug #4547: PHP 8 compatibility: Fix deprecation in CCaptcha when using Imagick extension (apphp)
- Bug #4541: PHP 8 compatibility: Fix deprecation in MarkdownParser (mdeweerd)
- Bug #4544: PHP 8 compatibility: Fix deprecation in CLocale (apphp)
- Bug #4566: PHP 8 compatibility: Fix passing null to string parameter parameter (apphp)
- Enh #4552: Added support for PHP 8.3 (sandippingle, ThePepster, marcovtwout)

Version 1.1.29 November 14, 2023
Expand Down
3 changes: 3 additions & 0 deletions framework/console/CConsoleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ protected function resolveRequest($args)
$params=array(); // unnamed parameters
foreach($args as $arg)
{
if (is_null($arg))
continue;

if(preg_match('/^--(\w+)(=(.*))?$/',$arg,$matches)) // an option
{
$name=$matches[1];
Expand Down

0 comments on commit f0ea6bd

Please sign in to comment.