Completed
Push — master ( 363d00...fc5f1e )
by Nate
02:59
created
src/Element/JsonObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string $property
35 35
      * @param string $value
36 36
      */
37
-    public function addString(string $property, ?string $value)
37
+    public function addString(string $property, ? string $value)
38 38
     {
39 39
         $this->add($property, JsonPrimitive::create($value));
40 40
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $property
46 46
      * @param int $value
47 47
      */
48
-    public function addInteger(string $property, ?int $value)
48
+    public function addInteger(string $property, ? int $value)
49 49
     {
50 50
         $this->add($property, JsonPrimitive::create($value));
51 51
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $property
57 57
      * @param float $value
58 58
      */
59
-    public function addFloat(string $property, ?float $value)
59
+    public function addFloat(string $property, ? float $value)
60 60
     {
61 61
         $this->add($property, JsonPrimitive::create($value));
62 62
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param string $property
68 68
      * @param bool $value
69 69
      */
70
-    public function addBoolean(string $property, ?bool $value)
70
+    public function addBoolean(string $property, ? bool $value)
71 71
     {
72 72
         $this->add($property, JsonPrimitive::create($value));
73 73
     }
Please login to merge, or discard this patch.
src/Element/JsonPrimitive.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * Factory constructor that handles nulls
37 37
      *
38 38
      * @param mixed $value
39
-     * @return JsonNull|JsonPrimitive
39
+     * @return JsonElement
40 40
      */
41 41
     public static function create($value)
42 42
     {
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/JsonElementTypeAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * Read the next value, convert it to its type and return it
29 29
      *
30 30
      * @param JsonReadable $reader
31
-     * @return mixed
31
+     * @return JsonElement
32 32
      * @throws \LogicException If the token can not be handled
33 33
      */
34 34
     public function read(JsonReadable $reader): JsonElement
Please login to merge, or discard this patch.
src/JsonWritable.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -94,6 +94,7 @@
 block discarded – undo
94 94
      * Sets whether nulls are serialized
95 95
      *
96 96
      * @param bool $serializeNull
97
+     * @return void
97 98
      */
98 99
     public function setSerializeNull(bool $serializeNull): void;
99 100
 }
Please login to merge, or discard this patch.
src/PhpType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
      *
198 198
      * @return string
199 199
      */
200
-    public function getClass(): ?string
200
+    public function getClass(): ? string
201 201
     {
202 202
         return $this->class;
203 203
     }
Please login to merge, or discard this patch.