From 6280dfc02530234b0ef8154081f45b22519c9052 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Mon, 11 Aug 2025 09:17:06 -0700 Subject: [PATCH] UPGRADING: document #[\Attribute] validation from GH-19154 [skip ci] --- UPGRADING | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UPGRADING b/UPGRADING index 17b8ce21302..c95ed92f6da 100644 --- a/UPGRADING +++ b/UPGRADING @@ -50,6 +50,9 @@ PHP 8.5 UPGRADE NOTES immediately, without calling user-defined error handlers. . Exceptions thrown by user-defined error handlers when handling class linking errors are not promoted to fatal errors anymore and do not prevent linking. + . Applying #[\Attribute] to an abstract class, enum, interface, or trait triggers + an error during compilation. Previously, the attribute could be added, but when + ReflectionAttribute::newInstance() was called an error would be thrown. - DOM: . Cloning a DOMNamedNodeMap, DOMNodeList, Dom\NamedNodeMap, Dom\NodeList,