From bef5754e4676a8a578550b6af24d050a946405eb Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 3 Nov 2016 23:22:40 +0100 Subject: * more strict function definitions --- app/frontend/db/ActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/frontend/db') diff --git a/app/frontend/db/ActiveRecord.php b/app/frontend/db/ActiveRecord.php index 31f87f5..45469dc 100644 --- a/app/frontend/db/ActiveRecord.php +++ b/app/frontend/db/ActiveRecord.php @@ -2,7 +2,7 @@ class ActiveRecord extends TActiveRecord { - private function _getMappedPropertyName($name) { + private function _getMappedPropertyName(string $name) { if (isset(static::$COLUMN_MAPPING[$name])) { return static::$COLUMN_MAPPING[$name]; } @@ -16,7 +16,7 @@ class ActiveRecord extends TActiveRecord { 'deleteallby' ]; - private function _getMappedMethodName($method) { + private function _getMappedMethodName(string $method) { if (static::$COLUMN_MAPPING) { $methodParts = []; if (preg_match('/^(' . implode('|', self::DYNAMIC_METHODS) . ')(.*)$/i', $method, $methodParts)) { -- cgit v1.2.3