Maha Bouchiba 2 years ago
parent
commit
58c8d235d2
2 changed files with 30 additions and 7 deletions
  1. 24 1
      phpstan.json
  2. 6 6
      src/Entity/Public/PublicEvent.php

+ 24 - 1
phpstan.json

@@ -1 +1,24 @@
-[]
+[
+    {
+        "description": "PHPDoc tag @param references unknown parameter: $price_min",
+        "fingerprint": "a01fcf3b22321902df6137f7c06fa593d7b805397a90357e55ea87d53b3fbb02",
+        "severity": "major",
+        "location": {
+            "path": "src/Entity/Public/PublicEvent.php",
+            "lines": {
+                "begin": 523
+            }
+        }
+    },
+    {
+        "description": "PHPDoc tag @param references unknown parameter: $price_max",
+        "fingerprint": "16c23a8222383c8eab1118fa7cd936e1b023cc8af2118927cf67f7fc72e7e4a1",
+        "severity": "major",
+        "location": {
+            "path": "src/Entity/Public/PublicEvent.php",
+            "lines": {
+                "begin": 541
+            }
+        }
+    }
+]

+ 6 - 6
src/Entity/Public/PublicEvent.php

@@ -511,16 +511,16 @@ class PublicEvent
     /**
      * @return int
      */
-    public function getPriceMin(): int
+    public function getPriceMini(): int
     {
         return $this->price_mini;
     }
 
     /**
-     * @param int $price_min
+     * @param int $price_mini
      * @return PublicEvent
      */
-    public function setPriceMin(int $price_mini): PublicEvent
+    public function setPriceMini(int $price_mini): PublicEvent
     {
         $this->price_mini = $price_mini;
         return $this;
@@ -529,16 +529,16 @@ class PublicEvent
     /**
      * @return int
      */
-    public function getPriceMax(): int
+    public function getPriceMaxi(): int
     {
         return $this->price_maxi;
     }
 
     /**
-     * @param int $price_max
+     * @param int $price_maxi
      * @return PublicEvent
      */
-    public function setPriceMax(int $price_maxi): PublicEvent
+    public function setPriceMaxi(int $price_maxi): PublicEvent
     {
         $this->price_maxi = $price_maxi;
         return $this;