File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11<?php
22namespace Ds ;
33
4- use \ Error ;
4+ use OutOfBoundsException ;
55
66/**
77 * Queue
@@ -127,14 +127,14 @@ public function getIterator()
127127 /**
128128 * @inheritdoc
129129 *
130- * @throws Error
130+ * @throws OutOfBoundsException
131131 */
132132 public function offsetSet ($ offset , $ value )
133133 {
134134 if ($ offset === null ) {
135135 $ this ->push ($ value );
136136 } else {
137- throw new Error ();
137+ throw new OutOfBoundsException ();
138138 }
139139 }
140140
Original file line number Diff line number Diff line change 11<?php
22namespace Ds ;
33
4- use Error ;
4+ use OutOfBoundsException ;
55use UnderflowException ;
66
77/**
@@ -132,14 +132,14 @@ public function getIterator()
132132 /**
133133 * @inheritdoc
134134 *
135- * @throws Error
135+ * @throws OutOfBoundsException
136136 */
137137 public function offsetSet ($ offset , $ value )
138138 {
139139 if ($ offset === null ) {
140140 $ this ->push ($ value );
141141 } else {
142- throw new Error ();
142+ throw new OutOfBoundsException ();
143143 }
144144 }
145145
You can’t perform that action at this time.
0 commit comments