Skip to content

Commit 68aac37

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [VarDumper] Fix CSS alignment in HtmlDumper allow environment variables starting with an underscore Update a test [PsrHttpMessageBridge] Fix links in composer.json [Mailer][Postmark] Add missing changelog for webhook support Remove #StandWithUkraine [Notifier][Smsc] Require login and password
2 parents c1fd862 + a41e4fa commit 68aac37

File tree

11 files changed

+23
-13
lines changed

11 files changed

+23
-13
lines changed

src/Symfony/Bridge/PsrHttpMessage/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "symfony-bridge",
44
"description": "PSR HTTP message bridge",
55
"keywords": ["http", "psr-7", "psr-17", "http-message"],
6-
"homepage": "http://symfony.com",
6+
"homepage": "https://symfony.com",
77
"license": "MIT",
88
"authors": [
99
{
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"name": "Symfony Community",
15-
"homepage": "http://symfony.com/contributors"
15+
"homepage": "https://symfony.com/contributors"
1616
}
1717
],
1818
"require": {

src/Symfony/Bundle/FrameworkBundle/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function all(string $namespace = null): array
158158

159159
public function getLongVersion(): string
160160
{
161-
return parent::getLongVersion().sprintf(' (env: <comment>%s</>, debug: <comment>%s</>) <bg=#0057B7;fg=#FFDD00>#StandWith</><bg=#FFDD00;fg=#0057B7>Ukraine</> <href=https://sf.to/ukraine>https://sf.to/ukraine</>', $this->kernel->getEnvironment(), $this->kernel->isDebug() ? 'true' : 'false');
161+
return parent::getLongVersion().sprintf(' (env: <comment>%s</>, debug: <comment>%s</>)', $this->kernel->getEnvironment(), $this->kernel->isDebug() ? 'true' : 'false');
162162
}
163163

164164
public function add(Command $command): ?Command

src/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'utf-8 valid string' => "\u{021b}\u{1b56}\ttest",
1313
'binary' => "\xf0\xf0\xf0\xf0",
1414
'binary-control-char' => "This is a Bell char \x07",
15-
'console banner' => "\e[37;44m#StandWith\e[30;43mUkraine\e[0m",
15+
'console banner' => "\e[37;44mHello\e[30;43mWorld\e[0m",
1616
'null string' => 'null',
1717
'string of digits' => '123',
1818
'string of digits prefixed with minus character' => '-123',

src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected function getDefaultParameters(): array
9898
'utf-8 valid string' => 'ț᭖ test',
9999
'binary' => 'ðððð',
100100
'binary-control-char' => 'This is a Bell char ',
101-
'console banner' => '[37;44m#StandWith[30;43mUkraine[0m',
101+
'console banner' => '[37;44mHello[30;43mWorld[0m',
102102
'null string' => 'null',
103103
'string of digits' => '123',
104104
'string of digits prefixed with minus character' => '-123',

src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services8.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parameter key="utf-8 valid string">&#x21B;&#x1B56; test</parameter>
2222
<parameter key="binary" type="binary">8PDw8A==</parameter>
2323
<parameter key="binary-control-char" type="binary">VGhpcyBpcyBhIEJlbGwgY2hhciAH</parameter>
24-
<parameter key="console banner" type="binary">G1szNzs0NG0jU3RhbmRXaXRoG1szMDs0M21Va3JhaW5lG1swbQ==</parameter>
24+
<parameter key="console banner" type="binary">G1szNzs0NG1IZWxsbxtbMzA7NDNtV29ybGQbWzBt</parameter>
2525
<parameter key="null string" type="string">null</parameter>
2626
<parameter key="string of digits" type="string">123</parameter>
2727
<parameter key="string of digits prefixed with minus character" type="string">-123</parameter>

src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameters:
77
utf-8 valid string: "ț᭖\ttest"
88
binary: !!binary 8PDw8A==
99
binary-control-char: !!binary VGhpcyBpcyBhIEJlbGwgY2hhciAH
10-
console banner: "\e[37;44m#StandWith\e[30;43mUkraine\e[0m"
10+
console banner: "\e[37;44mHello\e[30;43mWorld\e[0m"
1111
null string: 'null'
1212
string of digits: '123'
1313
string of digits prefixed with minus character: '-123'

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
final class Dotenv
2727
{
28-
public const VARNAME_REGEX = '(?i:[A-Z][A-Z0-9_]*+)';
28+
public const VARNAME_REGEX = '(?i:_?[A-Z][A-Z0-9_]*+)';
2929
public const STATE_VARNAME = 0;
3030
public const STATE_VALUE = 1;
3131

@@ -341,8 +341,8 @@ private function lexValue(): string
341341
++$this->cursor;
342342
$value = str_replace(['\\"', '\r', '\n'], ['"', "\r", "\n"], $value);
343343
$resolvedValue = $value;
344-
$resolvedValue = $this->resolveVariables($resolvedValue, $loadedVars);
345344
$resolvedValue = $this->resolveCommands($resolvedValue, $loadedVars);
345+
$resolvedValue = $this->resolveVariables($resolvedValue, $loadedVars);
346346
$resolvedValue = str_replace('\\\\', '\\', $resolvedValue);
347347
$v .= $resolvedValue;
348348
} else {
@@ -364,8 +364,8 @@ private function lexValue(): string
364364
}
365365
$value = rtrim($value);
366366
$resolvedValue = $value;
367-
$resolvedValue = $this->resolveVariables($resolvedValue, $loadedVars);
368367
$resolvedValue = $this->resolveCommands($resolvedValue, $loadedVars);
368+
$resolvedValue = $this->resolveVariables($resolvedValue, $loadedVars);
369369
$resolvedValue = str_replace('\\\\', '\\', $resolvedValue);
370370

371371
if ($resolvedValue === $value && preg_match('/\s+/', $value)) {

src/Symfony/Component/Dotenv/Tests/DotenvTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static function getEnvDataWithFormatErrors()
5353
["FOO=\nBAR=\${FOO:-\'a{a}a}", "Unsupported character \"'\" found in the default value of variable \"\$FOO\". in \".env\" at line 2.\n...\\nBAR=\${FOO:-\'a{a}a}...\n ^ line 2 offset 24"],
5454
["FOO=\nBAR=\${FOO:-a\$a}", "Unsupported character \"\$\" found in the default value of variable \"\$FOO\". in \".env\" at line 2.\n...FOO=\\nBAR=\${FOO:-a\$a}...\n ^ line 2 offset 20"],
5555
["FOO=\nBAR=\${FOO:-a\"a}", "Unclosed braces on variable expansion in \".env\" at line 2.\n...FOO=\\nBAR=\${FOO:-a\"a}...\n ^ line 2 offset 17"],
56+
['_=FOO', "Invalid character in variable name in \".env\" at line 1.\n..._=FOO...\n ^ line 1 offset 0"],
5657
];
5758

5859
if ('\\' !== \DIRECTORY_SEPARATOR) {
@@ -175,6 +176,10 @@ public static function getEnvData()
175176
["FOO=\nBAR=\${FOO:=TEST}", ['FOO' => 'TEST', 'BAR' => 'TEST']],
176177
["FOO=\nBAR=\$FOO:=TEST}", ['FOO' => 'TEST', 'BAR' => 'TEST}']],
177178
["FOO=foo\nFOOBAR=\${FOO}\${BAR}", ['FOO' => 'foo', 'FOOBAR' => 'foo']],
179+
180+
// underscores
181+
['_FOO=BAR', ['_FOO' => 'BAR']],
182+
['_FOO_BAR=FOOBAR', ['_FOO_BAR' => 'FOOBAR']],
178183
];
179184

180185
if ('\\' !== \DIRECTORY_SEPARATOR) {

src/Symfony/Component/Mailer/Bridge/Postmark/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.3
5+
---
6+
7+
* Add support for webhooks
8+
49
4.4.0
510
-----
611

src/Symfony/Component/Notifier/Bridge/Smsc/SmscTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ final class SmscTransport extends AbstractTransport
3434
private ?string $password;
3535
private string $from;
3636

37-
public function __construct(?string $username, #[\SensitiveParameter] ?string $password, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37+
public function __construct(string $login, #[\SensitiveParameter] string $password, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3838
{
39-
$this->login = $username;
39+
$this->login = $login;
4040
$this->password = $password;
4141
$this->from = $from;
4242

0 commit comments

Comments
 (0)