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

Wrap expect function in a function_exists #10

Merged
merged 1 commit into from
May 19, 2021

Conversation

olivernybroe
Copy link
Member

It's often a great practice to wrap function declaration in function_exists.

This will also resolve a crash in rector where they have a function named the same.

@nunomaduro
Copy link
Member

Can you wrap all functions?

@olivernybroe
Copy link
Member Author

@nunomaduro Sure, I'll create a PR to the other plugins and main repo also 👍

@olivernybroe
Copy link
Member Author

Only needed one for the main repo, all others were wrapped or was scoped

@nunomaduro
Copy link
Member

@olivernybroe Can you merge and tag?

@olivernybroe olivernybroe merged commit e6f10ea into pestphp:master May 19, 2021
@olivernybroe olivernybroe deleted the function_exist_check branch May 19, 2021 09:14
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.

2 participants