-
Notifications
You must be signed in to change notification settings - Fork 856
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
Update PHPStan #1211
Update PHPStan #1211
Changes from 3 commits
9667937
96a4e46
c236d80
bb3fbd5
f2fd990
199b124
93308a4
9f9845a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,8 @@ | |
"phpunit/phpunit": "^5.7 || ^9.0", | ||
"php-coveralls/php-coveralls": "^2.1", | ||
"squizlabs/php_codesniffer": "^3.3", | ||
"friendsofphp/php-cs-fixer": "3.2.1 || 2.17.1" | ||
"friendsofphp/php-cs-fixer": "3.2.1 || 2.17.1", | ||
"phpstan/phpstan": "^1.2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this cause issues installing the package with dev dependencies on earlier versions if we're saying it's not compatible with them? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. I think we should go with a policy of
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good - let's leave a comment explaining this and steps for running <php 7.2 so that this doesn't come back to haunt us down the road once we've forgotten :) |
||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,8 @@ public function deleteDiscount($params = null, $opts = null) | |
$url = $this->instanceUrl() . '/discount'; | ||
list($response, $opts) = $this->_request('delete', $url, $params, $opts); | ||
$this->refreshFrom(['discount' => null], $opts, true); | ||
|
||
return $this; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will need a codegen change right? |
||
} | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,8 +66,6 @@ class Quote extends ApiResource | |
* @param null|array|string $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\File the created file | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flagging this will also need a codegen change. |
||
*/ | ||
public function pdf($readBodyChunkCallable, $params = null, $opts = null) | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +0,0 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Access to undefined constant Stripe\\\\ApiResource\\:\\:OBJECT_NAME\\.$#" | ||
count: 1 | ||
path: lib/ApiResource.php | ||
|
||
- | ||
message: "#^Access to undefined constant Stripe\\\\SingletonApiResource\\:\\:OBJECT_NAME\\.$#" | ||
count: 1 | ||
path: lib/SingletonApiResource.php | ||
|
||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ parameters: | |
|
||
ignoreErrors: | ||
- '#Unsafe usage of new static\(\).#' | ||
|
||
reportUnmatchedIgnoredErrors: false |
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.
Probably want to remove the PHPSTAN_VERSION export above.