mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
PHPStan updates
This commit is contained in:
parent
613d035ebe
commit
f21783d1f8
6 changed files with 36 additions and 49 deletions
|
@ -29,7 +29,7 @@ use function Safe\unlink;
|
|||
* @property ?User $Submitter
|
||||
* @property ?User $Reviewer
|
||||
*/
|
||||
class Artwork{
|
||||
final class Artwork{
|
||||
use Traits\Accessor;
|
||||
use Traits\PropertyFromHttp;
|
||||
|
||||
|
|
|
@ -138,15 +138,14 @@ class HttpInput{
|
|||
return true;
|
||||
}
|
||||
}
|
||||
elseif(sizeof($_FILES) > 0){
|
||||
// We received files but may have an error because the size exceeded our limit.
|
||||
foreach($_FILES as $file){
|
||||
/** @var array<string, int> $file */
|
||||
$error = $file['error'] ?? UPLOAD_ERR_OK;
|
||||
|
||||
if($error == UPLOAD_ERR_INI_SIZE || $error == UPLOAD_ERR_FORM_SIZE){
|
||||
return true;
|
||||
}
|
||||
// We received files but may have an error because the size exceeded our limit.
|
||||
foreach($_FILES as $file){
|
||||
/** @var array<string, int> $file */
|
||||
$error = $file['error'] ?? UPLOAD_ERR_OK;
|
||||
|
||||
if($error == UPLOAD_ERR_INI_SIZE || $error == UPLOAD_ERR_FORM_SIZE){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ abstract class OpdsFeed extends AtomFeed{
|
|||
|
||||
$this->Updated = $updated;
|
||||
|
||||
/** @phpstan-ignore-next-line */
|
||||
unset($this->_XmlString);
|
||||
file_put_contents($this->Path, $this->GetXmlString());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue