Commit 0f4d026
authored
Fix type error (#898)
The profile name seems to be cast to an integer if it looks like an integer.
That's the case for example with a `7777` profile, I got the following error:
```
PHP Fatal error: Uncaught TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, int given in .../vendor/async-aws/core/src/Credentials/IniFileLoader.php:56
Stack trace:
#0 .../vendor/async-aws/core/src/Credentials/IniFileLoader.php(56): preg_replace('/^profile /', '', 7777)
```1 parent bc54526 commit 0f4d026
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments