File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1919 "astrotomic/php-conditional-proxy" : " ^0.2.0"
2020 },
2121 "require-dev" : {
22+ "php" : " ^7.4" ,
2223 "pestphp/pest" : " ^0.3.0" ,
2324 "spatie/pest-plugin-snapshots" : " ^0.3.0"
2425 },
Original file line number Diff line number Diff line change @@ -66,12 +66,8 @@ public function __toString()
6666 ->url ('http://www.example.com ' )
6767 ->description ('Description ' )
6868 ->locale ('en_US ' )
69- ->when (false , function (Website $ og ) {
70- $ og ->alternateLocale ('de_DE ' );
71- })
72- ->when (true , function (Website $ og ) {
73- $ og ->alternateLocale ('en_GB ' );
74- })
69+ ->when (false , fn (Website $ og ) => $ og ->alternateLocale ('de_DE ' ))
70+ ->when (true , fn (Website $ og ) => $ og ->alternateLocale ('en_GB ' ))
7571 ->siteName ('Example ' )
7672 ->image ('http://www.example.com/image1.jpg ' );
7773
You can’t perform that action at this time.
0 commit comments