na końcu! class Tools extends ToolsCore { public static function displayError($message, $htmlentities = true) { // Dodaj swój unikalny tekst, aby wiedzieć, że to Twój override $modifiedMessage = "MÓJ TEST OVERRIDE: " . $message; return parent::displayError($modifiedMessage, $htmlentities); } }