From d86f4f4b94445547fde84798317b364c064cb957 Mon Sep 17 00:00:00 2001 From: Yahnis Elsts Date: Sun, 9 Oct 2022 18:52:41 +0300 Subject: [PATCH] Minor: Remove some unreachable code. trigger_error() should stop execution when the error type is E_USER_ERROR. --- Puc/v5p0/PucFactory.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Puc/v5p0/PucFactory.php b/Puc/v5p0/PucFactory.php index 9f1a04e..2b832c9 100644 --- a/Puc/v5p0/PucFactory.php +++ b/Puc/v5p0/PucFactory.php @@ -114,7 +114,6 @@ if ( !class_exists(PucFactory::class, false) ): ), E_USER_ERROR ); - return null; } if ( !isset($apiClass) ) { @@ -129,7 +128,6 @@ if ( !class_exists(PucFactory::class, false) ): htmlentities(self::$latestCompatibleVersion), htmlentities($service) ), E_USER_ERROR); - return null; } return new $checkerClass(