Skip to content

Conversation

@szepeviktor
Copy link
Contributor

@mnapoli Please run PHPStan. Keeps your project running :)

IO::spin('deploying');
$config['region'] = $region;
$deployment = $brefCloud->createDeployment($environment, $config, $gitRef, $gitMessage, $awsAccountName, $region);
$deployment = $brefCloud->createDeployment($environment, $config, $gitRef, $gitMessage, $awsAccountName);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createDeployment has no region parameter


IO::verbose('Git ref: ' . $gitRef);
$gitMessageLog = explode("\n", $gitMessage)[0] ?? '';
$gitMessageLog = explode("\n", $gitMessage)[0];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gitMessage comes from the previous explode(), so it is always a string

Comment on lines -188 to +189
$stackResults = preg_match('/stack: (.*)\n/', $infoOutput, $matches);
$regionResults = preg_match('/region: (.*)\n/', $infoOutput, $matches);
$stackResults = preg_match('/stack: (.*)\n/', $infoOutput, $stackMatches);
$regionResults = preg_match('/region: (.*)\n/', $infoOutput, $regionMatches);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there were 3 $matches!!!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I think this happened after a refactor the code makes no sense indeed

@mnapoli
Copy link
Member

mnapoli commented Sep 1, 2025

Thanks!

@mnapoli
Copy link
Member

mnapoli commented Sep 1, 2025

btw I'm not sure if you're using Bref or not, but always interested to talk, I might have sometimes needs for someone to jump in and help a few hours of work here and there. You can find me on slack (https://bref.sh/slack) if you want to chat more about it

@mnapoli mnapoli merged commit 2d8a584 into brefphp:main Sep 1, 2025
@szepeviktor szepeviktor deleted the pls-run-phpstan branch September 1, 2025 23:40
@szepeviktor
Copy link
Contributor Author

Glad to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants