typhoon/reflection
Static, fast alternative to PHP’s native Reflection. Reflects code without running or autoloading it, uses lazy loading + caching, and stays compatible with native reflection. Supports Psalm/PHPStan phpDoc types, template resolution, and avoids memory leaks (safe with zend.enable_gc=0).
ConstantReflection and TyphoonReflector::reflectConstant().AttributeReflection::evaluate() to emphasize the risk of runtime errors.AttributeReflection::evaluateArguments() to emphasize the risk of runtime errors.ClassConstantReflection::evaluate() to emphasize the risk of runtime errors.ParameterReflection::evaluateDefault() to emphasize the risk of runtime errors.PropertyReflection::evaluateDefault() to emphasize the risk of runtime errors.AttributeReflection::newInstance() in favor of evaluate().AttributeReflection::arguments() in favor of evaluateArguments().ClassConstantReflection::value() in favor of evaluate().ParameterReflection::defaultValue() in favor of evaluateDefault().PropertyReflection::defaultValue() in favor of evaluateDefault().How can I help you explore Laravel packages today?