Skip to content

Commit

Permalink
MethodValue::getDocUrl: secure subdomain redirects to www on https
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 26, 2024
1 parent 945fb5b commit d528bb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified build/kint.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Zval/MethodValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ public function getPhpDocUrl(): ?string
$funcname = \substr($funcname, 2);
}

return 'https://secure.php.net/'.$class.'.'.$funcname;
return 'https://www.php.net/'.$class.'.'.$funcname;
}
}
8 changes: 4 additions & 4 deletions tests/Zval/MethodValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function testGetPhpDocUrl()
{
$m = new MethodValue(new ReflectionMethod(Exception::class, '__construct'));
$this->assertSame(
'https://secure.php.net/exception.construct',
'https://www.php.net/exception.construct',
$m->getPhpDocUrl()
);
}
Expand All @@ -251,7 +251,7 @@ public function testGetPhpDocUrlParent()
{
$m = new MethodValue(new ReflectionMethod(LogicException::class, 'getMessage'));
$this->assertSame(
'https://secure.php.net/exception.getmessage',
'https://www.php.net/exception.getmessage',
$m->getPhpDocUrl()
);
}
Expand All @@ -272,7 +272,7 @@ public function testGetPhpDocUrlFunction()
{
$m = new MethodValue(new ReflectionFunction('explode'));
$this->assertSame(
'https://secure.php.net/function.explode',
'https://www.php.net/function.explode',
$m->getPhpDocUrl()
);
}
Expand All @@ -288,7 +288,7 @@ public function testGetPhpDocUrlNamespaced()

$m = new MethodValue(new ReflectionMethod(Randomizer::class, 'getBytes'));
$this->assertSame(
'https://secure.php.net/random-randomizer.getbytes',
'https://www.php.net/random-randomizer.getbytes',
$m->getPhpDocUrl()
);
}
Expand Down

0 comments on commit d528bb1

Please sign in to comment.