Skip to content

Fix for empty base path causing warnings#18

Merged
jdpanderson merged 1 commit intomasterfrom
fix-empty-needle
Sep 1, 2020
Merged

Fix for empty base path causing warnings#18
jdpanderson merged 1 commit intomasterfrom
fix-empty-needle

Conversation

@francislavoie
Copy link
Copy Markdown
Contributor

We've been seeing warnings like these:

PHP Warning:  strpos(): Empty needle in /vendor/vectorface/snappy-router/src/Vectorface/SnappyRouter/Handler/ControllerHandler.php on line 162

If the needle is an empty string, we should skip this code path.

@jdpanderson
Copy link
Copy Markdown
Member

Looks good to me. Travis is failing some legacy PHP versions for what looks like infrastructure reasons, so I'm re-running those jobs to see if they start passing.

We've been seeing warnings like these:

```
PHP Warning:  strpos(): Empty needle in /vendor/vectorface/snappy-router/src/Vectorface/SnappyRouter/Handler/ControllerHandler.php on line 162
```
Copy link
Copy Markdown
Member

@jdpanderson jdpanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it should work cleanly with the if statement below it.

@jdpanderson jdpanderson merged commit 2f2a1fa into master Sep 1, 2020
@jdpanderson jdpanderson deleted the fix-empty-needle branch September 1, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants