You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I applied this suggestion which works as well, and it runs very quickly now.
But the problem is: The library does not prefix everything, in AWS example, before or after removing unused services, the problem is the same. It does not prefix this code (in: /vendor-prefixed/aws/aws-sdk-php/src/S3/S3Client.php):
public function getObjectUrl($bucket, $key)
{
$command = $this->getCommand('GetObject', [
'Bucket' => $bucket,
'Key' => $key
]);
return (string) \Aws\serialize($command)->getUri(); // <<<---- HERE
}
All other parts look fine, only this code is not prefixed, and I can not upload any files to AWS without this.
Any idea? I guess maybe it is because it starts with \?
The text was updated successfully, but these errors were encountered:
sovetski
added a commit
to sovetski/strauss
that referenced
this issue
Mar 7, 2024
Great, thanks! That's merged into master now, a9bb376, and I added a test, 6518699. I also applied that removeUnusedServices script to some older tests that I had marked as skip because they were previously too slow, 5b905e1.
In general, edge cases like these need to be identified from errors before I can fix them. I think it would be better if this tool were using nikic/PHP-Parser, but the regex approach has gotten us this far. The currently open issues are more around dealing with Composer than the replacements themselves so it's not a priority to look into yet.
I have some other work in-progress so I'm not going to create a release immediately.
Hi,
My
composer.json
:I applied this suggestion which works as well, and it runs very quickly now.
But the problem is: The library does not prefix everything, in AWS example, before or after removing unused services, the problem is the same. It does not prefix this code (in:
/vendor-prefixed/aws/aws-sdk-php/src/S3/S3Client.php
):All other parts look fine, only this code is not prefixed, and I can not upload any files to AWS without this.
Any idea? I guess maybe it is because it starts with
\
?The text was updated successfully, but these errors were encountered: