[php-src] Issue #15992: Error message for missing abstract methods: incorrect plural
| From: | DanielEScherzer | Date: | Sun, 22 Sep 2024 21:47:29 +0000 |
| Subject: | [php-src] Issue #15992: Error message for missing abstract methods: incorrect plural | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247858@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15992
Author: DanielEScherzer
### Description
The following code:
```php
<?php
class C {
abstract public function f();
}
```
Resulted in this output:
```
Fatal error: Class C contains 1 abstract method and must therefore be declared abstract or implement
the remaining methods (C::f) in /in/W34sb on line 7
Process exited with code 255.
```
But I expected this output instead:
```
Fatal error: Class C contains 1 abstract method and must therefore be declared abstract or implement
the remaining method (C::f) in /in/W34sb on line 7
Process exited with code 255.
```
("remaining methods" should be "remaining method" - we already have
pluralization handling for "1 abstract method" vs multiple)
### PHP Version
PHP 8.2+
### Operating System
_No response_