Browse Source

Remove unneeded error supressions.

ADmad 7 years ago
parent
commit
a993f8013d
3 changed files with 2 additions and 8 deletions
  1. 0 6
      psalm.xml
  2. 1 1
      src/Datasource/EntityTrait.php
  3. 1 1
      src/ORM/Association.php

+ 0 - 6
psalm.xml

@@ -34,13 +34,7 @@
 
         <RedundantCondition>
             <errorLevel type="suppress">
-                <file name="src/Console/ConsoleErrorHandler.php" />
-                <file name="src/Database/Expression/Comparison.php" />
-                <file name="src/Datasource/EntityTrait.php" />
-                <file name="src/Http/Client/Adapter/Curl.php" />
-                <file name="src/Http/Client/Request.php" />
                 <file name="src/I18n/DateFormatTrait.php" />
-                <file name="src/ORM/Association.php" />
                 <file name="src/Utility/Hash.php" />
             </errorLevel>
         </RedundantCondition>

+ 1 - 1
src/Datasource/EntityTrait.php

@@ -624,7 +624,7 @@ trait EntityTrait
             return static::$_accessors[$class][$type][$property] = '';
         }
 
-        if ($class === Entity::class) {
+        if (static::class === Entity::class) {
             return '';
         }
 

+ 1 - 1
src/ORM/Association.php

@@ -401,7 +401,7 @@ abstract class Association
                         $this->_sourceTable ? get_class($this->_sourceTable) : 'null',
                         $this->getName(),
                         $this->type(),
-                        $this->_targetTable ? get_class($this->_targetTable) : 'null',
+                        get_class($this->_targetTable),
                         $className
                     ));
                 }