Skip to content

Instantly share code, notes, and snippets.

@brzuchal
Created March 25, 2020 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brzuchal/c985ceefb76914748f01bd9ce410c135 to your computer and use it in GitHub Desktop.
Save brzuchal/c985ceefb76914748f01bd9ce410c135 to your computer and use it in GitHub Desktop.
PHP Reflection in PHP Namespace
<?php
namespace {
class ReflectionClass extends \Php\ReflectionClass {}
class ReflectionType extends \Php\ReflectionTypeConstraint {}
class ReflectionNamedType extends \Php\ReflectionClassTypeConstraint {}
}
namespace Php {
abstract class ReflectionType implements Reflector {}
class ReflectionClass extends ReflectionType {}
class ReflectionTypeConstraint {}
class ReflectionClassTypeConstraint extends ReflectionTypeConstraint {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment