Test Setup Failed
Branch master (b9909e)
by Barney
03:44
created
src/ImmutableArrayAccessTrait.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
       $this->throwImmutable(sprintf($msg, static::class));
16 16
     }
17 17
 
18
+    /**
19
+     * @param string $msg
20
+     */
18 21
     protected function throwImmutable($msg, $errorCode = null)
19 22
     {
20 23
         throw new ImmutableCollectionException($msg, $errorCode);
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
     }
12 12
 
13 13
     final public function offsetUnset($offset) {
14
-      $msg = 'Collection %s is immutable and values cannot be unset.';
15
-      $this->throwImmutable(sprintf($msg, static::class));
14
+        $msg = 'Collection %s is immutable and values cannot be unset.';
15
+        $this->throwImmutable(sprintf($msg, static::class));
16 16
     }
17 17
 
18 18
     protected function throwImmutable($msg, $errorCode = null)
Please login to merge, or discard this patch.
examples/example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
 
24 24
 $arrayStorage = ImmutableArrayStorage::fromTraversable($objects);
25 25
 
26
-foreach($arrayStorage as $object) {
26
+foreach ($arrayStorage as $object) {
27 27
     echo $object->say();
28 28
 }
Please login to merge, or discard this patch.