-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 1.0.0 #1
Release 1.0.0 #1
Conversation
Please link the release group in the template, as well, for easier access to it. |
.scrutinizer.yml
Outdated
build: | ||
dependencies: | ||
before: | ||
- composer config repositories.spryker composer https://code.spryker.com/repo/private |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed, and even wrong.
Please use current template.
composer.json
Outdated
"spryker/testify": "*" | ||
}, | ||
"autoload": { | ||
"psr-0": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
psr-4 must be used since end of 2017
|
||
/** | ||
* MIT License | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is using the wrong license. Please check with current specs on .license file for MIT.
public $adapter; | ||
|
||
/** | ||
* @var \SprykerEco\Zed\Sevensenders\Dependency\Facade\SevensendersToSalesFacadeBridge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must be the interface.
Please run in level 5 of phpstan, this would find the issues.
* @return bool | ||
*/ | ||
public function isTokenValid(SevensendersTokenTransfer $tokenTransfer): bool; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please run code sniffer and setup your IDE properly: The newline missing warnings should not be here.
|
||
/** | ||
* @method \SprykerEco\Zed\Sevensenders\Business\SevensendersBusinessFactory getFactory() | ||
* @method \SprykerEco\Zed\Sevensenders\Persistence\SevensendersRepositoryInterface getRepository()() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid () syntax.
@@ -23,7 +23,7 @@ | |||
}, | |||
"minimum-stability": "dev", | |||
"autoload-dev": { | |||
"psr-0": { | |||
"psr-4": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is not how psr-4 works. please check other modules on the proper changes for it.
@@ -16,7 +16,7 @@ | |||
"spryker/testify": "*" | |||
}, | |||
"autoload": { | |||
"psr-0": { | |||
"psr-4": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not how psr-4 works!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've already known it. I should change my branches quickly and I couldn't find the right way earlier
} | ||
|
||
/** | ||
* @param mixed $value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you know you only work with array you can say that here.
* @param int|null $depth | ||
* @param int|null $options | ||
* | ||
* @return mixed|null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you know you only work with array you can say that here maybe. Check if phpstan is ok with this.
interface SevensendersToUtilEncodingServiceInterface | ||
{ | ||
/** | ||
* @param array $value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you already do here :)
* @param int|null $depth | ||
* @param int|null $options | ||
* | ||
* @return mixed|null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
*/ | ||
public function decodeJson($jsonValue, $assoc = true, $depth = null, $options = null) | ||
public function decodeJson($jsonValue, $assoc = true, $depth = null, $options = null): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldnt typehint. The doc blocks are still array|null
as null can be returned.
])->getBody()->getContents()); | ||
|
||
if (!array_key_exists(static::RESPONSE_KEY_TOKEN, $response)) { | ||
throw new SevensendersApiBadCredentialsException('Bad credentials', 401); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move 401 to constant
Developer(s): @vhrychenko
Peer Reviewer:
Tickets:
https://spryker.atlassian.net/browse/ECO-1924
Academy PR:
Please confirm
Documentation
Release Table
Release Notes
Module Sevensenders
Patch: Backwards-compatible bug fix
Def of done (by the responsible developer):
Change log