diff options
author | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
commit | bef5754e4676a8a578550b6af24d050a946405eb (patch) | |
tree | 190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/db | |
parent | 94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff) |
* more strict function definitions
Diffstat (limited to 'app/frontend/db')
-rw-r--r-- | app/frontend/db/ActiveRecord.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |