|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-01-27 22:57 UTC] requinix@php.net
-Summary: not catchable
+Summary: Conflicts with inherited typed property types should
be exceptions not errors
-Type: Bug
+Type: Feature/Change Request
-Package: Scripting Engine problem
+Package: Class/Object related
[2020-01-27 23:17 UTC] nikic@php.net
[2022-02-07 06:37 UTC] madampayal55 at gmail dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 03:00:02 2025 UTC |
Description: ------------ PHP Fatal error: Type of test_typed_properties_extended::$int must be int (as in class test_typed_properties) why are such errors not catchable as nearly anything else like parse errors in the recent history? not helpful when a testsuite designed to collect all errors and warnings and present them at the end silently stops while it would echo error_log normally as final action try { require $testfile; } catch(Throwable $exception) { $this->trigger_error("custom/{$basename_testfile} - Exception - {$this->format_exception((string)$exception)}"); }