Bug #81571 [NEW]: Deprecation error leads to Fatal error?

From: Date: Sat, 30 Oct 2021 12:35:31 +0000
Subject: Bug #81571 [NEW]: Deprecation error leads to Fatal error?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237434@lists.php.net to get a copy of this message
From:             ondrej at mirtes dot cz
Operating system: N/A
PHP version:      8.1.0RC5
Package:          *General Issues
Bug Type:         Bug
Bug description:Deprecation error leads to Fatal error?

Description:
------------
In my CI build I get this problem:

PHP Fatal error:  During inheritance of ArrayAccess: Uncaught Return
type of Hoa\Protocol\Node\Node::offsetExists($  
  name) should either be compatible with ArrayAccess::offsetExists(mixed
$offset): bool, or the #[\ReturnTypeWillChan  
  ge] attribute should be used to temporarily suppress the notice    

So deprecation error somehow gets converted to a fatal error?

Also note that this isn't an issue of an error handler because other
deprecation errors are printed without crashing PHP before that too.

Here's the CI pipeline in question:
https://github.com/phpstan/phpstan-src/runs/4055035108?check_suite_focus=true


-- 
Edit bug report at https://bugs.php.net/bug.php?id=81571&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81571&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81571&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81571&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81571&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81571&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81571&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81571&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81571&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81571&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81571&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81571&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81571&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81571&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81571&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81571&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81571&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81571&r=mysqlcfg


Thread (6 messages)

« previous php.bugs (#237434) next »