Skip to content

Commit 0d40559

Browse files
committed
fix type hint for RecordBuilder property
1 parent 6f33db2 commit 0d40559

File tree

2 files changed

+1
-56
lines changed

2 files changed

+1
-56
lines changed

core/ArchiveProcessor/RecordBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class RecordBuilder
3030
protected $maxRowsInSubtable;
3131

3232
/**
33-
* @var string|null
33+
* @var string|int|null
3434
*/
3535
protected $columnToSortByBeforeTruncation;
3636

phpstan-baseline.neon

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,11 +3438,6 @@ parameters:
34383438
count: 1
34393439
path: plugins/BulkTracking/Tracker/Handler.php
34403440

3441-
-
3442-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
3443-
count: 1
3444-
path: plugins/Contents/RecordBuilders/ContentRecords.php
3445-
34463441
-
34473442
message: "#^Result of && is always false\\.$#"
34483443
count: 1
@@ -3978,11 +3973,6 @@ parameters:
39783973
count: 1
39793974
path: plugins/CustomDimensions/RecordBuilders/CustomDimension.php
39803975

3981-
-
3982-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
3983-
count: 1
3984-
path: plugins/CustomDimensions/RecordBuilders/CustomDimension.php
3985-
39863976
-
39873977
message: "#^Variable \\$value in isset\\(\\) always exists and is not nullable\\.$#"
39883978
count: 1
@@ -4023,11 +4013,6 @@ parameters:
40234013
count: 1
40244014
path: plugins/Dashboard/Model.php
40254015

4026-
-
4027-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
4028-
count: 1
4029-
path: plugins/DevicePlugins/RecordBuilders/DevicePlugins.php
4030-
40314016
-
40324017
message: "#^Call to an undefined method Piwik\\\\DataTable\\\\DataTableInterface\\:\\:getDataTables\\(\\)\\.$#"
40334018
count: 1
@@ -4063,11 +4048,6 @@ parameters:
40634048
count: 1
40644049
path: plugins/DevicesDetection/Columns/Os.php
40654050

4066-
-
4067-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
4068-
count: 1
4069-
path: plugins/DevicesDetection/RecordBuilders/Base.php
4070-
40714051
-
40724052
message: "#^Variable \\$label in empty\\(\\) always exists and is not falsy\\.$#"
40734053
count: 1
@@ -4268,11 +4248,6 @@ parameters:
42684248
count: 1
42694249
path: plugins/Events/Columns/TotalEvents.php
42704250

4271-
-
4272-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
4273-
count: 1
4274-
path: plugins/Events/RecordBuilders/EventReports.php
4275-
42764251
-
42774252
message: "#^Property Piwik\\\\Plugin\\\\Report\\:\\:\\$processedMetrics \\(array\\) does not accept false\\.$#"
42784253
count: 1
@@ -5248,11 +5223,6 @@ parameters:
52485223
count: 1
52495224
path: plugins/Referrers/DataTable/Filter/SetGetReferrerTypeSubtables.php
52505225

5251-
-
5252-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
5253-
count: 1
5254-
path: plugins/Referrers/RecordBuilders/Referrers.php
5255-
52565226
-
52575227
message: "#^Method Piwik\\\\Plugins\\\\Referrers\\\\SearchEngine\\:\\:getBackLinkFromUrlAndKeyword\\(\\) should return string but returns false\\.$#"
52585228
count: 1
@@ -5268,16 +5238,6 @@ parameters:
52685238
count: 1
52695239
path: plugins/Referrers/functions.php
52705240

5271-
-
5272-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
5273-
count: 1
5274-
path: plugins/Resolution/RecordBuilders/Configuration.php
5275-
5276-
-
5277-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
5278-
count: 1
5279-
path: plugins/Resolution/RecordBuilders/Resolution.php
5280-
52815241
-
52825242
message: "#^Parameter \\#1 \\$data of function simplexml_load_string expects string, bool given\\.$#"
52835243
count: 1
@@ -5613,11 +5573,6 @@ parameters:
56135573
count: 1
56145574
path: plugins/UserCountry/LocationProvider.php
56155575

5616-
-
5617-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
5618-
count: 1
5619-
path: plugins/UserCountry/RecordBuilders/Locations.php
5620-
56215576
-
56225577
message: "#^Parameter \\#6 \\$willDelete of method Piwik\\\\DataAccess\\\\RawLogDao\\:\\:forAllLogs\\(\\) expects string, false given\\.$#"
56235578
count: 1
@@ -5643,11 +5598,6 @@ parameters:
56435598
count: 1
56445599
path: plugins/UserId/RecordBuilders/Users.php
56455600

5646-
-
5647-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
5648-
count: 1
5649-
path: plugins/UserId/RecordBuilders/Users.php
5650-
56515601
-
56525602
message: "#^Property Piwik\\\\ViewDataTable\\\\RequestConfig\\:\\:\\$filter_excludelowpop_value \\(Closure\\|string\\) does not accept 2\\.$#"
56535603
count: 1
@@ -5658,11 +5608,6 @@ parameters:
56585608
count: 1
56595609
path: plugins/UserLanguage/RecordBuilders/Languages.php
56605610

5661-
-
5662-
message: "#^Property Piwik\\\\ArchiveProcessor\\\\RecordBuilder\\:\\:\\$columnToSortByBeforeTruncation \\(string\\|null\\) does not accept int\\.$#"
5663-
count: 1
5664-
path: plugins/UserLanguage/RecordBuilders/Languages.php
5665-
56665611
-
56675612
message: "#^Default value of the parameter \\#5 \\$expireHours \\(int\\) of method Piwik\\\\Plugins\\\\UsersManager\\\\API\\:\\:createAppSpecificTokenAuth\\(\\) is incompatible with type string\\.$#"
56685613
count: 1

0 commit comments

Comments
 (0)