This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Allow `$this` type hint

  • Loading branch information...
CharlotteDunois committed Jul 2, 2018
1 parent 13f9f53 commit 50d4d9834bafab3d39b11409e34f50c8105a527a
Showing with 1 addition and 1 deletion.
  1. +1 −1 Sami/Project.php
View
@@ -372,7 +372,7 @@ public function seedCache($previous, $current)
public static function isPhpTypeHint($hint)
{
return in_array(strtolower($hint), array('', 'scalar', 'object', 'boolean', 'bool', 'true', 'false', 'int', 'integer', 'array', 'string', 'mixed', 'void', 'null', 'resource', 'double', 'float', 'callable'));
return in_array(strtolower($hint), array('', 'scalar', 'object', 'boolean', 'bool', 'true', 'false', 'int', 'integer', 'array', 'string', 'mixed', 'void', 'null', 'resource', 'double', 'float', 'callable', '$this'));
}
protected function updateCache(ClassReflection $class)

0 comments on commit 50d4d98

Please sign in to comment.