Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Allow $this type hint
  • Loading branch information
Charlotte Dunois committed Jul 2, 2018
1 parent 13f9f53 commit 50d4d9834bafab3d39b11409e34f50c8105a527a
Showing with 1 addition and 1 deletion.
  1. +1 −1 Sami/Project.php
@@ -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.