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)
179
179
*/
180
180
public function hasAttribute ($ name )
181
181
{
182
- return array_key_exists ($ name , $ this ->attributes );
182
+ return \ array_key_exists ($ name , $ this ->attributes );
183
183
}
184
184
185
185
/**
@@ -193,7 +193,7 @@ public function hasAttribute($name)
193
193
*/
194
194
public function getAttribute ($ name )
195
195
{
196
- if (!array_key_exists ($ name , $ this ->attributes )) {
196
+ if (!\ array_key_exists ($ name , $ this ->attributes )) {
197
197
throw new \InvalidArgumentException (sprintf ('This token has no "%s" attribute. ' , $ name ));
198
198
}
199
199
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function getEncoder($user)
33
33
$ encoderKey = null ;
34
34
35
35
if ($ user instanceof EncoderAwareInterface && (null !== $ encoderName = $ user ->getEncoderName ())) {
36
- if (!array_key_exists ($ encoderName , $ this ->encoders )) {
36
+ if (!\ array_key_exists ($ encoderName , $ this ->encoders )) {
37
37
throw new \RuntimeException (sprintf ('The encoder "%s" was not configured. ' , $ encoderName ));
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments