[php-src] PR #15015: Deduplicate NULL checks in ext/dom
| From: | nielsdos | Date: | Thu, 18 Jul 2024 18:01:14 +0000 |
| Subject: | [php-src] PR #15015: Deduplicate NULL checks in ext/dom | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27352@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15015
Author: nielsdos
This introduces a new helper php_dom_create_nullable_object() that does the NULL check and puts NULL
in return_value. Otherwise it runs php_dom_create_object(). This deduplicates a bit of code.