-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
The first alpha of php8.1 was just released:
https://www.php.net/archive/2021.php#2021-06-10-1
There are a few breaking changes, so it might be useful to already start fixing things to get them released in time.
Changes: https://github.com/php/php-src/blob/php-8.1.0alpha1/UPGRADING
The major breaking change is that built-in functions now (just like user-defined functions) no longer accept null in non-nullable arguments:
https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
Click to show fixed issues
- monolog datetime
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/lukas/public_html/matomophp8/vendor/monolog/monolog/src/Monolog/Logger.php on line 324
- fixed in
https://github.com/Seldaek/monolog/pull/1554
- fix released in monolog/monolog
1.26.1
- fixed by updates composer dependencies #17828
- glob in upgradephp
WARNING [2021-06-17 21:51:48] 298624 /home/lukas/public_html/matomophp8/libs/upgradephp/upgrade.php(260): Deprecated - glob(): Passing null to parameter #2 ($flags) of type int is deprecated - Matomo 4.0.0-b3 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
- db logging string instead of array
WARNING [2021-06-17 22:11:46] 311625 /home/lukas/public_html/matomophp8/core/Db.php(829): Warning - foreach() argument must be of type array|object, string given - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
- when running
./console core:update
- fixed by PHP 8.1 compatibility, fix "Warning - foreach() argument must be of type" #17688
- PDO fetch default
WARNING [2021-06-17 22:27:06] 321855 /home/lukas/public_html/matomophp8/libs/Zend/Db/Statement/Pdo.php(257): Deprecated - PDOStatement::fetch(): Passing null to parameter #2 ($cursorOrientation) of type int is deprecated - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-06-17 22:28:30] 322336 /home/lukas/public_html/matomophp8/libs/Zend/Db/Statement/Pdo.php(257): Deprecated - PDOStatement::fetch(): Passing null to parameter #3 ($cursorOffset) of type int is deprecated - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
- null site id
WARNING [2021-06-18 08:20:57] 24637 /home/lukas/public_html/matomophp8/core/Site.php(433): Deprecated - explode(): Passing null to parameter #2 ($string) of type string is deprecated - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-06-18 08:24:50] 25583 /home/lukas/public_html/matomophp8/plugins/CoreConsole/Commands/CoreArchiver.php(59): Deprecated - explode(): Passing null to parameter #2 ($string) of type string is deprecated - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
- strtoupper null
WARNING [2021-06-18 11:15:28] 107661 /home/lukas/public_html/matomophp8/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php(256): Deprecated - strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
- not sure how to elegantly solve this
$result[self::REGION_CODE_KEY] = strtoupper($subdivision->isoCode) ?: $this->determineRegionIsoCodeByNameAndCountryCode($subdivision->name, $result[self::COUNTRY_CODE_KEY]); - fixed in Fix a couple a possible warnings in PHP 8.1 #17869
- substr_count null
WARNING [2021-06-18 11:15:28] 107661 /home/lukas/public_html/matomophp8/core/Access.php(164): Deprecated - substr_count(): Passing null to parameter #1 ($haystack) of type string is deprecated - Matomo 4.4.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
Line 164 in ea561b5
$isGetApiRequest = 1 === substr_count($apiMethod, '.') && strpos($apiMethod, '.get') > 0; - fixed in Fix a couple a possible warnings in PHP 8.1 #17869
- more null during tracking
PHP Deprecated: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/lukas/public_html/matomophp8/plugins/Referrers/Columns/Base.php on line 499
PHP Deprecated: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/lukas/public_html/matomophp8/plugins/Referrers/Columns/Base.php on line 635
PHP Deprecated: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/lukas/public_html/matomophp8/plugins/Referrers/Columns/Base.php on line 313
PHP Deprecated: urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/lukas/public_html/matomophp8/plugins/Referrers/SearchEngine.php on line 269
- core/ArchiveProcessor.php(320)
Deprecated - round(): Passing null to parameter #1 ($num) of type int|float is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/core/ArchiveProcessor.php(320)
$2/core/ArchiveProcessor.php(304)
$3/core/ArchiveProcessor/PluginsArchiver.php(289)
$4/core/ArchiveProcessor/PluginsArchiver.php(102)
$5/core/ArchiveProcessor/Loader.php(212)
$6/core/ArchiveProcessor/Loader.php(158)
$7/core/ArchiveProcessor/Loader.php(101)
$8/core/Context.php(75)
$9/core/ArchiveProcessor/Loader.php(105)
matomo/core/ArchiveProcessor.php
Line 320 in 99136cb
$value = round($value, 2);
- core/Common.php(423)
Deprecated - htmlspecialchars_decode(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/core/Common.php(423)
$2/plugins/Referrers/VisitorDetails.php(58)
$3/plugins/Referrers/VisitorDetails.php(23)
$4/plugins/Live/Visitor.php(39)
$5/plugins/Live/API.php(343)
[internal function]: Piwik\Plugins\Live\API->Piwik\Plugins\Live{closure}()
$7/core/DataTable.php(512)
$8/core/DataTable.php(618)
$9/core/API/DataTablePostProcessor.php(303)
Line 423 in 99136cb
return htmlspecialchars_decode($value, self::HTML_ENCODING_QUOTE_STYLE);
- core/Common.php(459)
Deprecated - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/core/Common.php(459)
$2/core/Common.php(381)
$3/plugins/Diagnostics/Diagnostic/DiagnosticResult.php(73)
$4/plugins/Diagnostics/Diagnostic/ArchiveInvalidationsInformational.php(45)
$5/plugins/Diagnostics/DiagnosticService.php(68)
$6/plugins/Diagnostics/DiagnosticService.php(55)
$7/plugins/Installation/Controller.php(494)
[internal function]: Piwik\Plugins\Installation\Controller->systemCheckPage()
$9/core/FrontController.php(619)
Line 459 in 99136cb
return str_replace(array("\n", "\r"), '', $value);
- core/Translation/Translator.php(89)+(97)
Deprecated - strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/core/Translation/Translator.php(89)
$2/core/Piwik.php(854)
$3/plugins/API/ProcessedReport.php(232)
$4/plugins/API/ProcessedReport.php(51)
$5/plugins/API/ProcessedReport.php(342)
$6/plugins/API/API.php(287)
[internal function]: Piwik\Plugins\API\API->getProcessedReport()
$8/core/API/Proxy.php(244)
$9/core/Context.php(28)
matomo/core/Translation/Translator.php
Line 89 in 99136cb
if (strpos($translationId, "_") !== false) {
- core/Twig.php(57)
Deprecated - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/core/Twig.php(57)
$2/core/Twig.php(74)
$3/tmp/templates_c/7d/7db4ec1e91f63df5116d7b66dd6777405f533f5a60a0b2517aaedccadb6d2b4a.php(144)
$4/vendor/twig/twig/src/Template.php(171)
$5/tmp/templates_c/ff/ff096956e9aa11f9753b91bdaba6866a4c4a38661c94d433eef362e1f21a3c64.php(157)
$6/vendor/twig/twig/src/Template.php(171)
$7/tmp/templates_c/9d/9d0a4a6b0b07f521040aefe6c6155bdda67bc8d9638dac5549c0e0ec63edef20.php(195)
$8/vendor/twig/twig/src/Template.php(171)
$9/vendor/twig/twig/src/Template.php(134)
Line 57 in 99136cb
$replacedString = str_replace($search, $replace, $string);
-
Update PHPMailer to at least 6.5.1 (first version with provisional support for PHP 8.1)
-
Iterators
/home/lukas/public_html/matomophp8/libs/Zend/Db/Statement/Pdo.php(267): Deprecated - Return type of Zend_Db_Statement_Pdo::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
- I think this one wasn't there before in the last alpha
matomo/libs/Zend/Db/Statement/Pdo.php
Lines 262 to 270 in f21acfe
/** * Required by IteratorAggregate interface * * @return IteratorIterator */ public function getIterator() { return new IteratorIterator($this->_stmt); } - I think PhpStorm complains that
$this->_stmt
which can be null is notTraversable
.
- core/DataTable.php(1979) + same in (1984),(1991),(1996),(2001)
Deprecated - Return type of Piwik\DataTable::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
$0/core/DataTable.php(168)
$1/vendor/composer/ClassLoader.php(476)
$2/vendor/composer/ClassLoader.php(344)
$3/core/DataTable/Simple.php(21)
$4/vendor/composer/ClassLoader.php(476)
$5/vendor/composer/ClassLoader.php(344)
$6/core/API/ApiRenderer.php(63)
$7/core/API/ResponseBuilder.php(124)
$8/core/API/Request.php(272)
$9/core/Context.php(28)
Line 1979 in 99136cb
public function getIterator()
- core/DataTable/Filter/AddColumnsProcessedMetrics.php(73)
Deprecated - Automatic conversion of false to array is deprecated
$0/core/DataTable/Filter/AddColumnsProcessedMetrics.php(73)
$1/core/DataTable.php(533)
$2/core/API/DataTablePostProcessor.php(257)
$3/core/API/DataTablePostProcessor.php(218)
$4/core/API/DataTablePostProcessor.php(121)
$5/core/API/ResponseBuilder.php(190)
$6/core/API/ResponseBuilder.php(104)
$7/core/API/Request.php(272)
$8/core/Context.php(28)
$9/core/API/Request.php(273)
$extraProcessedMetrics[] = new ConversionRate();
- libs/Zend/Session/Namespace.php(210)
Deprecated - Return type of Zend_Session_Namespace::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
$0/libs/Zend/Session/Namespace.php(44)
$1/vendor/composer/ClassLoader.php(476)
$2/vendor/composer/ClassLoader.php(344)
$3/core/Session/SessionNamespace.php(19)
$4/vendor/composer/ClassLoader.php(476)
$5/vendor/composer/ClassLoader.php(344)
$6/core/Notification/Manager.php(194)
$7/core/Notification/Manager.php(138)
$8/core/Notification/Manager.php(45)
$9/plugins/DiagnosticsExtended/DiagnosticsExtended.php(66)
matomo/libs/Zend/Session/Namespace.php
Line 210 in 99136cb
public function getIterator()
- plugins/Actions/Reports/GetPageTitles.php(77)
Deprecated - version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/Actions/Reports/GetPageTitles.php(77)
$2/core/Plugin/ViewDataTable.php(239)
$3/core/Plugin/Visualization.php(177)
$4/core/ViewDataTable/Factory.php(243)
$5/core/ViewDataTable/Factory.php(156)
$6/core/Plugin/Report.php(318)
$7/plugins/CoreHome/Controller.php(59)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget()
$9/core/FrontController.php(619)
if (version_compare(DbHelper::getInstallVersion(),'4.0.0-b1', '<')) {
- plugins/Actions/Reports/GetPageUrls.php(75)
Deprecated - version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/Actions/Reports/GetPageUrls.php(75)
$2/core/Plugin/ViewDataTable.php(239)
$3/core/Plugin/Visualization.php(177)
$4/core/ViewDataTable/Factory.php(243)
$5/core/ViewDataTable/Factory.php(156)
$6/core/Plugin/Report.php(318)
$7/plugins/CoreHome/Controller.php(59)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget()
$9/core/FrontController.php(619)
if (version_compare(DbHelper::getInstallVersion(),'4.0.0-b1', '<')) {
- plugins/DevicePlugins/API.php(89)
Deprecated - Automatic conversion of false to array is deprecated
$0/plugins/DevicePlugins/API.php(89)
[internal function]: Piwik\Plugins\DevicePlugins\API->getPlugin()
$2/core/API/Proxy.php(244)
$3/core/Context.php(28)
$4/core/API/Proxy.php(335)
$5/core/API/Request.php(266)
$6/plugins/API/ProcessedReport.php(378)
$7/plugins/API/API.php(287)
[internal function]: Piwik\Plugins\API\API->getProcessedReport()
$9/core/API/Proxy.php(244)
matomo/plugins/DevicePlugins/API.php
Line 89 in 99136cb
$extraProcessedMetrics[] = new VisitsPercent($visitsSum);
- plugins/Referrers/VisitorDetails.php(99)
Deprecated - urldecode(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/Referrers/VisitorDetails.php(99)
$2/plugins/Referrers/VisitorDetails.php(22)
$3/plugins/Live/Visitor.php(39)
$4/plugins/Live/API.php(343)
[internal function]: Piwik\Plugins\Live\API->Piwik\Plugins\Live{closure}()
$6/core/DataTable.php(512)
$7/core/DataTable.php(618)
$8/core/API/DataTablePostProcessor.php(303)
$9/core/API/DataTablePostProcessor.php(133)
return urldecode($this->details['referer_name']);
- plugins/SEO/Metric/Alexa.php(38)
Deprecated - urlencode(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/SEO/Metric/Alexa.php(38)
$2/plugins/SEO/Metric/Aggregator.php(35)
$3/plugins/SEO/Metric/ProviderCache.php(42)
$4/plugins/SEO/API.php(44)
$5/plugins/SEO/Widgets/GetRank.php(52)
$6/plugins/CoreHome/Controller.php(92)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget()
$8/core/FrontController.php(619)
$9/core/FrontController.php(168)
matomo/plugins/SEO/Metric/Alexa.php
Line 38 in 99136cb
$response = Http::sendHttpRequest(self::URL . urlencode($domain), $timeout = 10, @$_SERVER['HTTP_USER_AGENT']);
- plugins/SEO/Metric/Alexa.php(57)
Deprecated - urlencode(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/SEO/Metric/Alexa.php(57)
$2/plugins/SEO/Metric/Aggregator.php(35)
$3/plugins/SEO/Metric/ProviderCache.php(42)
$4/plugins/SEO/API.php(44)
$5/plugins/SEO/Widgets/GetRank.php(52)
$6/plugins/CoreHome/Controller.php(92)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget()
$8/core/FrontController.php(619)
$9/core/FrontController.php(168)
matomo/plugins/SEO/Metric/Alexa.php
Line 57 in 99136cb
$link = self::LINK . urlencode($domain);
- plugins/SEO/Metric/Bing.php(35)
Deprecated - urlencode(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/SEO/Metric/Bing.php(35)
$2/plugins/SEO/Metric/Aggregator.php(35)
$3/plugins/SEO/Metric/ProviderCache.php(42)
$4/plugins/SEO/API.php(44)
$5/plugins/SEO/Widgets/GetRank.php(52)
$6/plugins/CoreHome/Controller.php(92)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget()
$8/core/FrontController.php(619)
$9/core/FrontController.php(168)
matomo/plugins/SEO/Metric/Bing.php
Line 35 in 99136cb
$url = self::URL . urlencode($domain);
- plugins/SEO/Metric/DomainAge.php(38)
Deprecated - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/SEO/Metric/DomainAge.php(38)
$2/plugins/SEO/Metric/Aggregator.php(35)
$3/plugins/SEO/Metric/ProviderCache.php(42)
$4/plugins/SEO/API.php(44)
$5/plugins/SEO/Widgets/GetRank.php(52)
$6/plugins/CoreHome/Controller.php(92)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget()
$8/core/FrontController.php(619)
$9/core/FrontController.php(168)
matomo/plugins/SEO/Metric/DomainAge.php
Line 38 in 99136cb
$domain = str_replace('www.', '', $domain);
- plugins/SEO/Metric/Google.php(49)
Deprecated - urlencode(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/SEO/Metric/Google.php(49)
$2/plugins/SEO/Metric/Google.php(38)
$3/plugins/SEO/Metric/Aggregator.php(35)
$4/plugins/SEO/Metric/ProviderCache.php(42)
$5/plugins/SEO/API.php(44)
$6/plugins/SEO/Widgets/GetRank.php(52)
$7/plugins/CoreHome/Controller.php(92)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget()
$9/core/FrontController.php(619)
matomo/plugins/SEO/Metric/Google.php
Line 49 in 99136cb
$url = self::SEARCH_URL . urlencode($domain);
- plugins/SEO/Metric/ProviderCache.php(37)
Deprecated - md5(): Passing null to parameter #1 ($string) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/SEO/Metric/ProviderCache.php(37)
$2/plugins/SEO/API.php(44)
$3/plugins/SEO/Widgets/GetRank.php(52)
$4/plugins/CoreHome/Controller.php(92)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget()
$6/core/FrontController.php(619)
$7/core/FrontController.php(168)
$8/core/dispatch.php(32)
$9/index.php(25)
$cacheId = 'SEO_getRank_' . md5($domain);
- plugins/MultiSites/API.php(356)
Deprecated - Automatic conversion of false to array is deprecated
$0/plugins/MultiSites/API.php(356)
$1/plugins/MultiSites/API.php(260)
$2/plugins/MultiSites/API.php(103)
[internal function]: Piwik\Plugins\MultiSites\API->getAll()
$4/core/API/Proxy.php(244)
$5/core/Context.php(28)
$6/core/API/Proxy.php(335)
$7/core/API/Request.php(266)
$8/plugins/API/ProcessedReport.php(378)
$9/plugins/API/API.php(287)
matomo/plugins/MultiSites/API.php
Line 356 in 99136cb
$extraProcessedMetrics[] = new $evolutionMetricClass(
- plugins/VisitsSummary/Reports/Get.php(203)
Deprecated - version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/plugins/VisitsSummary/Reports/Get.php(203)
$2/plugins/VisitsSummary/Reports/Get.php(87)
$3/core/Plugin/ViewDataTable.php(239)
$4/core/ViewDataTable/Factory.php(243)
$5/core/ViewDataTable/Factory.php(156)
$6/core/Plugin/Report.php(318)
$7/plugins/CoreHome/Controller.php(59)
[internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget()
$9/core/FrontController.php(619)
matomo/plugins/VisitsSummary/Reports/Get.php
Line 203 in 99136cb
if (version_compare(DbHelper::getInstallVersion(),'4.0.0-b1', '<')) {
- expects rows of numeric values
Got invalid response from API request: ?module=API&method=CoreAdminHome.archiveReports&idSite=16&period=month&date=2020-09-01&format=json&trigger=archivephp. Response was
DataArray->sumMetricsPivot expects rows of numeric values, non numeric found: '2020-09-14' for column 0 - in plugin Cohorts. #0 /home/lukas/public_html/matomophp8/core/ArchiveProcessor/Loader.php(218): Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins(1, 0, false) #1 /home/lukas/public_html/matomophp8/core/ArchiveProcessor/Loader.php(158): Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(1, 0) #2 /home/lukas/public_html/matomophp8/core/ArchiveProcessor/Loader.php(101): Piwik\ArchiveProcessor\Loader->prepareArchiveImpl('VisitsSummary') #3 /home/lukas/public_html/matomophp8/core/Context.php(75): Piwik\ArchiveProcessor\Loader->Piwik\ArchiveProcessor\{closure}() #4 /home/lukas/public_html/matomophp8/core/ArchiveProcessor/Loader.php(105): Piwik\Context::changeIdSite(16, Object(Closure)) #5 /home/lukas/public_html/matomophp8/plugins/CoreAdminHome/API.php(278): Piwik\ArchiveProcessor\Loader->prepareArchive('VisitsSummary') #6 /home/lukas/public_html/matomophp8/core/Archive.php(830): Piwik\Plugins\CoreAdminHome\API->archiveReports(16, Object(Piwik\Period\Week), '2020-09-14', '', 'VisitsSummary', '') #7 /home/lukas/public_html/matomophp8/core/Archive.php(629): Piwik\Archive->prepareArchive(Array, Object(Piwik\Site), Object(Piwik\Period\Week)) #8 /home/lukas/public_html/matomophp8/core/Archive.php(576): Piwik\Archive->cacheArchiveIdsAfterLaunching(Array, Array) #9 /home/lukas/public_html/matomophp8/core/Archive.php(502): Piwik\Archive->getArchiveIds(Array) #10 /home/lukas/public_html/matomophp8/core/Archive.php(312): Piwik\Archive->get(Array, 'numeric')
[...]
- not sure if this one is related to php8.1
- vendor/davaxi/sparkline/src/Sparkline/Picture.php(115)+(138)
- PHP8.1 Deprecation - Implicit conversion from float to int loses precision davaxi/Sparkline#19
Deprecated - Implicit conversion from float 695.5555555555555 to int loses precision
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/vendor/davaxi/sparkline/src/Sparkline/Picture.php(115)
$2/vendor/davaxi/sparkline/src/Sparkline.php(124)
$3/vendor/davaxi/sparkline/src/Sparkline.php(188)
$4/core/Visualization/Sparkline.php(215)
$5/plugins/CoreVisualizations/Visualizations/Sparkline.php(107)
$6/core/Plugin/Controller.php(247)
$7/plugins/UserCountry/Controller.php(142)
[internal function]: Piwik\Plugins\UserCountry\Controller->getLastDistinctCountriesGraph()
$9/core/FrontController.php(619)
- vendor/szymach/c-pchart/src/Chart/BaseDraw.php(290)+(512)+Draw.php(1312)
- PHP8.1: Implicit conversion from float to int loses precision szymach/c-pchart#69
Deprecated - Implicit conversion from float 74.08333333332371 to int loses precision
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/vendor/szymach/c-pchart/src/Chart/BaseDraw.php(290)
$2/vendor/szymach/c-pchart/src/Chart/Draw.php(1569)
$3/vendor/szymach/c-pchart/src/Chart/Draw.php(1517)
$4/vendor/szymach/c-pchart/src/Chart/Draw.php(987)
$5/vendor/szymach/c-pchart/src/Chart/Draw.php(115)
$6/vendor/szymach/c-pchart/src/Chart/Draw.php(910)
$7/vendor/szymach/c-pchart/src/Chart/Draw.php(6001)
$8/plugins/ImageGraph/StaticGraph/Evolution.php(27)
$9/plugins/ImageGraph/API.php(496)
- vendor/szymach/c-pchart/src/Chart/Draw.php(82)
- PHP8.1: imagefilledpolygon(): Using the $num_points parameter is deprecated szymach/c-pchart#68
Deprecated - imagefilledpolygon(): Using the $num_points parameter is deprecated
[internal function]: Piwik\ErrorHandler::errorHandler()
$1/vendor/szymach/c-pchart/src/Chart/Draw.php(82)
$2/vendor/szymach/c-pchart/src/Chart/Draw.php(910)
$3/vendor/szymach/c-pchart/src/Chart/Draw.php(6001)
$4/plugins/ImageGraph/StaticGraph/Evolution.php(27)
$5/plugins/ImageGraph/API.php(496)
[internal function]: Piwik\Plugins\ImageGraph\API->get()
$7/core/API/Proxy.php(244)
$8/core/Context.php(28)
$9/core/API/Proxy.php(335)
- vendor/twig/twig/src/Markup.php(38)+(43)
- fixed in
https://github.com/twigphp/Twig/pull/3552
(no release yet)
Deprecated - Return type of Twig\Markup::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
$0/vendor/twig/twig/src/Markup.php(19)
$1/vendor/composer/ClassLoader.php(476)
$2/vendor/composer/ClassLoader.php(344)
$3/tmp/templates_c/7a/7a036532364d2339c82a6df4f07f7846cf6cbdec663dc41aa70fa9438b6cc75a.php(44)
$4/vendor/twig/twig/src/Template.php(394)
$5/vendor/twig/twig/src/Template.php(367)
$6/vendor/twig/twig/src/Template.php(379)
$7/vendor/twig/twig/src/TemplateWrapper.php(40)
$8/vendor/twig/twig/src/Environment.php(277)
$9/core/View.php(318)
- look at usages like
$idSite == 'all'
and use$idSite === 'all'
and similar ones see https://3v4l.org/17cZ2
- vendor/twig/twig/src/Node/Node.php(151)
- fixed in Twig2 PHP 8.1 beta compatibility twigphp/Twig#3552 (no release yet)
Deprecated - Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
$0/vendor/twig/twig/src/Node/Node.php(23)
$1/vendor/composer/ClassLoader.php(476)
$2/vendor/composer/ClassLoader.php(344)
$3/vendor/twig/twig/src/Node/TextNode.php(22)
$4/vendor/composer/ClassLoader.php(476)
$5/vendor/composer/ClassLoader.php(344)
$6/vendor/twig/twig/src/Parser.php(123)
$7/vendor/twig/twig/src/Parser.php(84)
$8/vendor/twig/twig/src/Environment.php(479)
$9/vendor/twig/twig/src/Environment.php(507)
to be updated...