Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7f2871

Browse files
committed
minor#20009 [Routing] fix reference type argument type (xabbuh)
This PR was merged into the 3.2-dev branch.Discussion----------[Routing] fix reference type argument type| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Commits-------a8dd628 [Routing] fix reference type argument type
2 parents5607c52 +a8dd628 commitf7f2871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,17 +647,17 @@ public function testFragmentsCanBeAppendedToUrls()
647647
{
648648
$routes =$this->getRoutes('test',newRoute('/testing'));
649649

650-
$url =$this->getGenerator($routes)->generate('test',array('_fragment' =>'frag ment'),true);
650+
$url =$this->getGenerator($routes)->generate('test',array('_fragment' =>'frag ment'),UrlGeneratorInterface::ABSOLUTE_PATH);
651651
$this->assertEquals('/app.php/testing#frag%20ment',$url);
652652

653-
$url =$this->getGenerator($routes)->generate('test',array('_fragment' =>'0'),true);
653+
$url =$this->getGenerator($routes)->generate('test',array('_fragment' =>'0'),UrlGeneratorInterface::ABSOLUTE_PATH);
654654
$this->assertEquals('/app.php/testing#0',$url);
655655
}
656656

657657
publicfunctiontestFragmentsDoNotEscapeValidCharacters()
658658
{
659659
$routes =$this->getRoutes('test',newRoute('/testing'));
660-
$url =$this->getGenerator($routes)->generate('test',array('_fragment' =>'?/'),true);
660+
$url =$this->getGenerator($routes)->generate('test',array('_fragment' =>'?/'),UrlGeneratorInterface::ABSOLUTE_PATH);
661661

662662
$this->assertEquals('/app.php/testing#?/',$url);
663663
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp