From 44d52c107f886a9dc73254a27194f344206db114 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Thu, 7 May 2015 10:56:05 +0200 Subject: [PATCH] avoid strict standard errors by dropping abstract static --- lib/DbMapping.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/DbMapping.php b/lib/DbMapping.php index b6973d7..c0a1c06 100644 --- a/lib/DbMapping.php +++ b/lib/DbMapping.php @@ -108,7 +108,9 @@ abstract class DbMapping * @param int $id * @return DbMapping */ - abstract public static function find($id); + public static function find($id) { + throw new RuntimeException("This method must be implemented in child classes."); + } /** * Return all the public attributes in an array;