New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle invalid variable type sent to Period/Range.php #19914
Comments
Looks like a potential regression, I'll assigned it to the current release. |
I guess this could be coupe options here. Line 530 in 037cb42
I can think of is add a check here. public static function getRelativeToEndDate(string $period, string $lastN, string $endDate, $site)
if (!is_string($endDate) || !is_string($period) || !is_int($lastN)) {
throw new \Exception("Invalid Input");
} |
@peterhashair For such cases it is always important to reproduce that locally. That way you may actually see the full set of errors/notices that occur.
So the fix for #18794 is actually doing what it should - it results in an invalid date exception that is shown to the user. But there are a couple of warnings/notices on they way, that shouldn't be triggered. |
This was actually supposed to be fixed in #18794 but seems to be still a problem. It is the same URL as in #18794 . Or is it a regression?
The text was updated successfully, but these errors were encountered: