Skip to content

Commit 093dd11

Browse files
minor symfony#61037 Fix php.net links (benjaminpick)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- Fix php.net links | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT When the paramter 'interval' contains an invalid relative date string, the exception message shows an invalid URL. This PR fixes the URLs. Commits ------- 26183e3 Fix php.net links
2 parents 02a0732 + 26183e3 commit 093dd11

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/HtmlErrorRendererTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static function provideFileLinkFormats(): iterable
100100

101101
public function testRendersStackWithoutBinaryStrings()
102102
{
103-
// make sure method arguments are available in stack traces (see https://www.php.net/manual/en/ini.core.php)
103+
// make sure method arguments are available in stack traces (see https://php.net/ini.core)
104104
ini_set('zend.exception_ignore_args', false);
105105

106106
$binaryData = file_get_contents(__DIR__.'/../Fixtures/pixel.png');

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function chmod(string|iterable $files, int $mode, int $umask = 0000, bool
235235
*
236236
* This method always throws on Windows, as the underlying PHP function is not supported.
237237
*
238-
* @see https://www.php.net/chown
238+
* @see https://php.net/chown
239239
*
240240
* @param string|int $user A user name or number
241241
* @param bool $recursive Whether change the owner recursively or not
@@ -267,7 +267,7 @@ public function chown(string|iterable $files, string|int $user, bool $recursive
267267
*
268268
* This method always throws on Windows, as the underlying PHP function is not supported.
269269
*
270-
* @see https://www.php.net/chgrp
270+
* @see https://php.net/chgrp
271271
*
272272
* @param string|int $group A group name or number
273273
* @param bool $recursive Whether change the group recursively or not

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function start(): bool
139139
* ---------- Part 1
140140
*
141141
* The part `[a-zA-Z0-9,-]` is related to the PHP ini directive `session.sid_bits_per_character` defined as 6.
142-
* See https://www.php.net/manual/en/session.configuration.php#ini.session.sid-bits-per-character.
142+
* See https://php.net/session.configuration#ini.session.sid-bits-per-character
143143
* Allowed values are integers such as:
144144
* - 4 for range `a-f0-9`
145145
* - 5 for range `a-v0-9`
@@ -148,7 +148,7 @@ public function start(): bool
148148
* ---------- Part 2
149149
*
150150
* The part `{22,250}` is related to the PHP ini directive `session.sid_length`.
151-
* See https://www.php.net/manual/en/session.configuration.php#ini.session.sid-length.
151+
* See https://php.net/session.configuration#ini.session.sid-length
152152
* Allowed values are integers between 22 and 256, but we use 250 for the max.
153153
*
154154
* Where does the 250 come from?

src/Symfony/Component/Lock/Store/MongoDbStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function __construct(Collection|Database|Client|Manager|string $mongo, ar
149149
*
150150
* Non-standard parameters are removed from the URI to improve libmongoc's re-use of connections.
151151
*
152-
* @see https://www.php.net/manual/en/mongodb.connection-handling.php
152+
* @see https://php.net/mongodb.connection-handling
153153
*/
154154
private function skimUri(string $uri): string
155155
{

src/Symfony/Component/Mime/Crypto/SMimeEncrypter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class SMimeEncrypter extends SMime
2424

2525
/**
2626
* @param string|string[] $certificate The path (or array of paths) of the file(s) containing the X.509 certificate(s)
27-
* @param int|null $cipher A set of algorithms used to encrypt the message. Must be one of these PHP constants: https://www.php.net/manual/en/openssl.ciphers.php
27+
* @param int|null $cipher A set of algorithms used to encrypt the message. Must be one of these PHP constants: https://php.net/openssl.ciphers
2828
*/
2929
public function __construct(string|array $certificate, ?int $cipher = null)
3030
{

src/Symfony/Component/Mime/FileinfoMimeTypeGuesser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface
2626
/**
2727
* @param string|null $magicFile A magic file to use with the finfo instance
2828
*
29-
* @see http://www.php.net/manual/en/function.finfo-open.php
29+
* @see https://php.net/finfo-open
3030
*/
3131
public function __construct(?string $magicFile = null)
3232
{

src/Symfony/Component/RateLimiter/RateLimiterFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ protected static function configureOptions(OptionsResolver $options): void
6565
try {
6666
$nowPlusInterval = @$now->modify('+' . $interval);
6767
} catch (\DateMalformedStringException $e) {
68-
throw new \LogicException(\sprintf('Cannot parse interval "%s", please use a valid unit as described on https://www.php.net/datetime.formats.relative.', $interval), 0, $e);
68+
throw new \LogicException(\sprintf('Cannot parse interval "%s", please use a valid unit as described on https://php.net/datetime.formats#datetime.formats.relative', $interval), 0, $e);
6969
}
7070

7171
if (!$nowPlusInterval) {
72-
throw new \LogicException(\sprintf('Cannot parse interval "%s", please use a valid unit as described on https://www.php.net/datetime.formats.relative.', $interval));
72+
throw new \LogicException(\sprintf('Cannot parse interval "%s", please use a valid unit as described on https://php.net/datetime.formats#datetime.formats.relative', $interval));
7373
}
7474

7575
return $now->diff($nowPlusInterval);

src/Symfony/Component/RateLimiter/Tests/LimiterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testFixedWindow()
4949
public function testWrongInterval()
5050
{
5151
$this->expectException(\LogicException::class);
52-
$this->expectExceptionMessage('Cannot parse interval "1 minut", please use a valid unit as described on https://www.php.net/datetime.formats.relative.');
52+
$this->expectExceptionMessage('Cannot parse interval "1 minut", please use a valid unit as described on https://php.net/datetime.formats#datetime.formats.relative');
5353

5454
$this->createFactory([
5555
'id' => 'test',

src/Symfony/Component/Serializer/Context/Encoder/JsonEncoderContextBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class JsonEncoderContextBuilder implements ContextBuilderInterface
2828
/**
2929
* Configures the json_encode flags bitmask.
3030
*
31-
* @see https://www.php.net/manual/en/json.constants.php
31+
* @see https://php.net/json.constants
3232
*
3333
* @param positive-int|null $options
3434
*/
@@ -40,7 +40,7 @@ public function withEncodeOptions(?int $options): static
4040
/**
4141
* Configures the json_decode flags bitmask.
4242
*
43-
* @see https://www.php.net/manual/en/json.constants.php
43+
* @see https://php.net/json.constants
4444
*
4545
* @param positive-int|null $options
4646
*/

src/Symfony/Component/Serializer/Context/Encoder/XmlEncoderContextBuilder.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function withAsCollection(?bool $asCollection): static
3636
/**
3737
* Configures node types to ignore while decoding.
3838
*
39-
* @see https://www.php.net/manual/en/dom.constants.php
39+
* @see https://php.net/dom.constants
4040
*
4141
* @param list<int>|null $decoderIgnoredNodeTypes
4242
*/
@@ -48,7 +48,7 @@ public function withDecoderIgnoredNodeTypes(?array $decoderIgnoredNodeTypes): st
4848
/**
4949
* Configures node types to ignore while encoding.
5050
*
51-
* @see https://www.php.net/manual/en/dom.constants.php
51+
* @see https://php.net/dom.constants
5252
*
5353
* @param list<int>|null $encoderIgnoredNodeTypes
5454
*/
@@ -60,7 +60,7 @@ public function withEncoderIgnoredNodeTypes(?array $encoderIgnoredNodeTypes): st
6060
/**
6161
* Configures the DOMDocument encoding.
6262
*
63-
* @see https://www.php.net/manual/en/class.domdocument.php#domdocument.props.encoding
63+
* @see https://php.net/class.domdocument#domdocument.props.encoding
6464
*/
6565
public function withEncoding(?string $encoding): static
6666
{
@@ -70,7 +70,7 @@ public function withEncoding(?string $encoding): static
7070
/**
7171
* Configures whether to encode with indentation and extra space.
7272
*
73-
* @see https://php.net/manual/en/class.domdocument.php#domdocument.props.formatoutput
73+
* @see https://php.net/class.domdocument#domdocument.props.formatoutput
7474
*/
7575
public function withFormatOutput(?bool $formatOutput): static
7676
{
@@ -80,7 +80,7 @@ public function withFormatOutput(?bool $formatOutput): static
8080
/**
8181
* Configures the DOMDocument::loadXml options bitmask.
8282
*
83-
* @see https://www.php.net/manual/en/libxml.constants.php
83+
* @see https://php.net/libxml.constants
8484
*
8585
* @param positive-int|null $loadOptions
8686
*/
@@ -92,7 +92,7 @@ public function withLoadOptions(?int $loadOptions): static
9292
/**
9393
* Configures the DOMDocument::saveXml options bitmask.
9494
*
95-
* @see https://www.php.net/manual/en/libxml.constants.php
95+
* @see https://php.net/libxml.constants
9696
*
9797
* @param positive-int|null $saveOptions
9898
*/
@@ -120,7 +120,7 @@ public function withRootNodeName(?string $rootNodeName): static
120120
/**
121121
* Configures whether the document will be standalone.
122122
*
123-
* @see https://php.net/manual/en/class.domdocument.php#domdocument.props.xmlstandalone
123+
* @see https://php.net/class.domdocument#domdocument.props.xmlstandalone
124124
*/
125125
public function withStandalone(?bool $standalone): static
126126
{
@@ -138,7 +138,7 @@ public function withTypeCastAttributes(?bool $typeCastAttributes): static
138138
/**
139139
* Configures the version number of the document.
140140
*
141-
* @see https://php.net/manual/en/class.domdocument.php#domdocument.props.xmlversion
141+
* @see https://php.net/class.domdocument#domdocument.props.xmlversion
142142
*/
143143
public function withVersion(?string $version): static
144144
{

0 commit comments

Comments
 (0)