This pull request extracts some Laravel class introspection helpers we were relying on into a helper class. It fixes two issues: class_basename not being defined outside of Laravel apps, and that PHP's built-in class_usesdoesn't find inherited traits.
Changes
This pull request extracts some Laravel class introspection helpers we were relying on into a helper class. It fixes two issues:
class_basename
not being defined outside of Laravel apps, and that PHP's built-inclass_uses
doesn't find inherited traits.For review: @weerd @chloealee