This repository was archived by the owner on May 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ public function setAttributes(array $attributes)
179179 */
180180 public function hasAttribute ($ name )
181181 {
182- return array_key_exists ($ name , $ this ->attributes );
182+ return \ array_key_exists ($ name , $ this ->attributes );
183183 }
184184
185185 /**
@@ -193,7 +193,7 @@ public function hasAttribute($name)
193193 */
194194 public function getAttribute ($ name )
195195 {
196- if (!array_key_exists ($ name , $ this ->attributes )) {
196+ if (!\ array_key_exists ($ name , $ this ->attributes )) {
197197 throw new \InvalidArgumentException (sprintf ('This token has no "%s" attribute. ' , $ name ));
198198 }
199199
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function getEncoder($user)
3333 $ encoderKey = null ;
3434
3535 if ($ user instanceof EncoderAwareInterface && (null !== $ encoderName = $ user ->getEncoderName ())) {
36- if (!array_key_exists ($ encoderName , $ this ->encoders )) {
36+ if (!\ array_key_exists ($ encoderName , $ this ->encoders )) {
3737 throw new \RuntimeException (sprintf ('The encoder "%s" was not configured. ' , $ encoderName ));
3838 }
3939
You can’t perform that action at this time.
0 commit comments