File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "type" : " bugfix" ,
4
+ "category" : " " ,
5
+ "description" : " Updates error level on deprecated `Command` methods. Removes suppressed call to deprecated method."
6
+ }
7
+ ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function setAuthSchemes(array $authSchemes)
78
78
trigger_error (__METHOD__ . ' is deprecated. Auth schemes '
79
79
. 'resolved using the service `auth` trait or via endpoint resolution '
80
80
. 'are now set in the command `@context` property.` '
81
- , E_USER_DEPRECATED
81
+ , E_USER_WARNING
82
82
);
83
83
84
84
$ this ->authSchemes = $ authSchemes ;
@@ -99,7 +99,7 @@ public function getAuthSchemes()
99
99
trigger_error (__METHOD__ . ' is deprecated. Auth schemes '
100
100
. 'resolved using the service `auth` trait or via endpoint resolution '
101
101
. 'can now be found in the command `@context` property.` '
102
- , E_USER_DEPRECATED
102
+ , E_USER_WARNING
103
103
);
104
104
105
105
return $ this ->authSchemes ?: [];
Original file line number Diff line number Diff line change @@ -231,7 +231,6 @@ private function applyAuthScheme(
231
231
): void
232
232
{
233
233
$ authScheme = $ this ->resolveAuthScheme ($ authSchemes );
234
- @$ command ->setAuthSchemes ($ authScheme );
235
234
236
235
$ command ['@context ' ]['signature_version ' ] = $ authScheme ['version ' ];
237
236
Original file line number Diff line number Diff line change @@ -86,10 +86,10 @@ public function testCanAccessLikeArray()
86
86
$ this ->assertNull ($ c ['boo ' ]);
87
87
}
88
88
89
- public function testGetAuthSchemesEmitsDeprecationNotice ()
89
+ public function testGetAuthSchemesEmitsWarning ()
90
90
{
91
- $ this ->expectDeprecation ( E_USER_DEPRECATED );
92
- $ this ->expectDeprecationMessage (
91
+ $ this ->expectWarning ( );
92
+ $ this ->expectWarningMessage (
93
93
'Aws\Command::getAuthSchemes is deprecated. Auth schemes resolved using the service '
94
94
.' `auth` trait or via endpoint resolution can now be found in the command `@context` property. '
95
95
);
@@ -98,10 +98,10 @@ public function testGetAuthSchemesEmitsDeprecationNotice()
98
98
$ c ->getAuthSchemes ();
99
99
}
100
100
101
- public function testSetAuthSchemesEmitsDeprecationNotice ()
101
+ public function testSetAuthSchemesEmitsWarning ()
102
102
{
103
- $ this ->expectDeprecation ( E_USER_DEPRECATED );
104
- $ this ->expectDeprecationMessage (
103
+ $ this ->expectWarning ( );
104
+ $ this ->expectWarningMessage (
105
105
'Aws\Command::setAuthSchemes is deprecated. Auth schemes resolved using the service '
106
106
.' `auth` trait or via endpoint resolution are now set in the command `@context` property. '
107
107
);
You can’t perform that action at this time.
0 commit comments