Browse Source

Fix invalid change by phpcs fixer.

ADmad 7 years ago
parent
commit
6efdc204a6
2 changed files with 4 additions and 2 deletions
  1. 2 1
      src/Database/Type/DateTimeType.php
  2. 2 1
      src/Form/Form.php

+ 2 - 1
src/Database/Type/DateTimeType.php

@@ -352,7 +352,8 @@ class DateTimeType extends BaseType
             $class = $fallback;
         }
         $this->_className = $class;
-        $this->_datetimeInstance = new $this()->_className();
+        // @codingStandardsIgnoreLine
+        $this->_datetimeInstance = new $this->_className();
     }
 
     /**

+ 2 - 1
src/Form/Form.php

@@ -139,7 +139,8 @@ class Form implements EventListenerInterface, EventDispatcherInterface, Validato
     public function schema(?Schema $schema = null): Schema
     {
         if ($schema === null && empty($this->_schema)) {
-            $schema = $this->_buildSchema(new $this()->_schemaClass());
+            // @codingStandardsIgnoreLine
+            $schema = $this->_buildSchema(new $this->_schemaClass());
         }
         if ($schema) {
             $this->_schema = $schema;