Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

allowing namespaces containing Spec like Specification (fix #5) #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brunoroux
Copy link

I'm not sure this is the most elegant solution but I couldn't use any preg_replace because it made specs fail. Couldn't figure out why.
So i switched back to some good old str_replace.

From what I understand, Spec has to be replaced in 2 cases :

  • When it is the configured Spec subnamespace
  • When it is at the end of the classname (indicating that the class indeed is a spec)

Every other occurence should be left untouched

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant