Browse Source

String cast

Guillermo Espinoza 7 years ago
parent
commit
ae6c26d5ad

+ 1 - 1
src/CablemodemBundle/Entity/CMTS.php

@@ -77,7 +77,7 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface
      */
     public function __toString()
     {
-        return $this->name;
+        return (string)$this->name;
     }
     
     /**

+ 1 - 1
src/CablemodemBundle/Entity/CMTSModel.php

@@ -42,7 +42,7 @@ class CMTSModel implements TenancyIdTraitInterface
      */
     public function __toString()
     {
-        return $this->name;
+        return (string)$this->name;
     }
 
     /**

+ 1 - 1
src/CablemodemBundle/Entity/CablemodemModel.php

@@ -42,7 +42,7 @@ class CablemodemModel implements TenancyIdTraitInterface
      */
     public function __toString()
     {
-        return $this->name;
+        return (string)$this->name;
     }
 
     /**

+ 1 - 1
src/CablemodemBundle/Entity/Node.php

@@ -59,7 +59,7 @@ class Node implements TenancyIdTraitInterface
      */
     public function __toString()
     {
-        return $this->name;
+        return (string)$this->name;
     }
 
     /**

+ 1 - 1
src/CablemodemBundle/Entity/Profile.php

@@ -83,7 +83,7 @@ class Profile  implements TenancyIdTraitInterface
      */
     public function __toString()
     {
-        return $this->name;
+        return (string)$this->name;
     }
 
     /**