Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Allow $this type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte Dunois authored Jul 2, 2018
1 parent 13f9f53 commit 50d4d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sami/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50d4d98

Please sign in to comment.