3 namespace Prophecy\Doubler\Generator;
6 * Tells whether a keyword refers to a class or to a built-in type for the
7 * current version of php
9 final class TypeHintReference
11 public function isBuiltInParamTypeHint($type)
19 return PHP_VERSION_ID >= 50400;
25 return PHP_VERSION_ID >= 70000;
28 return PHP_VERSION_ID >= 70100;
31 return PHP_VERSION_ID >= 70200;
38 public function isBuiltInReturnTypeHint($type)
40 if ($type === 'void') {
41 return PHP_VERSION_ID >= 70100;
44 return $this->isBuiltInParamTypeHint($type);