flow-development-collection
flow-development-collection copied to clipboard
FEATURE: Add fromClassAndMethodName() to LogEnvironment
This does some code cleanup and adds a new method fromClassAndMethodName($className, $methodName) to the LogEnvironment.
It be used like this:
LogEnvironment::fromClassAndMethodName(__CLASS__, __METHOD__)
and will return useful data – as opposed to LogEnvironment::fromMethodName(__METHOD__), which only works for static methods (SomeClass::someMethod or closures).
Checklist
- [ ] Code follows the PSR-2 coding style
- [ ] Tests have been created, run and adjusted as needed
- [ ] The PR is created against the lowest maintained branch
- [ ] Reviewer - PR Title is brief but complete and starts with
FEATURE|TASK|BUGFIX - [ ] Reviewer - The first section explains the change briefly for change-logs
- [ ] Reviewer - Breaking Changes are marked with
!!!and have upgrade-instructions
Why is this a task and not a new (tiny) feature?
Why is this a task and not a new (tiny) feature?
So I can sneak it into 8.3… 😎