summaryrefslogtreecommitdiff
path: root/app/frontend/db
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-03 23:22:40 +0100
committeremkael <emkael@tlen.pl>2016-11-03 23:22:40 +0100
commitbef5754e4676a8a578550b6af24d050a946405eb (patch)
tree190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/db
parent94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff)
* more strict function definitions
Diffstat (limited to 'app/frontend/db')
-rw-r--r--app/frontend/db/ActiveRecord.php4
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)) {