[php-src] PR #14717: Fix arginfo violation in removeChild()
| From: | nielsdos | Date: | Sat, 29 Jun 2024 12:55:02 +0000 |
| Subject: | [php-src] PR #14717: Fix arginfo violation in removeChild() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26882@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14717
Author: nielsdos
It was possible to return false without throwing an exception. This is even wrong in "old
DOM" because we expect either a NOT_FOUND_ERR or NO_MODIFICATION_ALLOWED_ERR according to the
documentation. A side effect of this patch is that it prioritises NOT_FOUND_ERR over
NO_MODIFICATION_ALLOWED_ERR but I think that's fine.