From dcbc08360cdfdf27363f47d7a7c13ac962849749 Mon Sep 17 00:00:00 2001 From: "Buster \"Silver Eagle\" Neece" Date: Sun, 5 Sep 2021 03:44:44 -0500 Subject: [PATCH] Revert PHPStan due to temp bug. --- composer.json | 2 +- composer.lock | 14 +++++++------- src/Entity/Repository/SongHistoryRepository.php | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 8dd71421f..0a246e44b 100644 --- a/composer.json +++ b/composer.json @@ -117,7 +117,7 @@ "mockery/mockery": "^1.0", "php-parallel-lint/php-console-highlighter": "^0.5.0", "php-parallel-lint/php-parallel-lint": "^1.3", - "phpstan/phpstan": "^0.12", + "phpstan/phpstan": "0.12.96", "phpstan/phpstan-doctrine": "^0.12", "phpunit/php-timer": "^5.0", "phpunit/phpunit": "^9.2", diff --git a/composer.lock b/composer.lock index ca55bd69e..49f04765c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cc682bf159b701cd01d1a39f508428ef", + "content-hash": "601cce81f6dc67d28ef0902a712fb852", "packages": [ { "name": "aws/aws-crt-php", @@ -11662,16 +11662,16 @@ }, { "name": "phpstan/phpstan", - "version": "0.12.98", + "version": "0.12.96", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "3bb7cc246c057405dd5e290c3ecc62ab51d57e00" + "reference": "a98bdc51318f20fcae8c953d266f81a70254917f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3bb7cc246c057405dd5e290c3ecc62ab51d57e00", - "reference": "3bb7cc246c057405dd5e290c3ecc62ab51d57e00", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a98bdc51318f20fcae8c953d266f81a70254917f", + "reference": "a98bdc51318f20fcae8c953d266f81a70254917f", "shasum": "" }, "require": { @@ -11702,7 +11702,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/0.12.98" + "source": "https://github.com/phpstan/phpstan/tree/0.12.96" }, "funding": [ { @@ -11722,7 +11722,7 @@ "type": "tidelift" } ], - "time": "2021-09-02T12:33:01+00:00" + "time": "2021-08-21T11:55:13+00:00" }, { "name": "phpstan/phpstan-doctrine", diff --git a/src/Entity/Repository/SongHistoryRepository.php b/src/Entity/Repository/SongHistoryRepository.php index bf32ab896..f9fd24ece 100644 --- a/src/Entity/Repository/SongHistoryRepository.php +++ b/src/Entity/Repository/SongHistoryRepository.php @@ -114,9 +114,9 @@ class SongHistoryRepository extends Repository } } - $last_sh->setDeltaPositive($delta_positive); - $last_sh->setDeltaNegative($delta_negative); - $last_sh->setDeltaTotal($delta_total); + $last_sh->setDeltaPositive((int)$delta_positive); + $last_sh->setDeltaNegative((int)$delta_negative); + $last_sh->setDeltaTotal((int)$delta_total); $last_sh->setUniqueListeners( $this->listenerRepository->getUniqueListeners(