File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,3 @@ parameters:
25
25
count : 2
26
26
path : src/ShapeRecord.php
27
27
28
- -
29
- message : " #^Property PhpMyAdmin\\\\ ShapeFile\\\\ ShapeRecord\\ :\\ :\\ $size \\ (int\\ ) does not accept mixed\\ .$#"
30
- count : 1
31
- path : src/ShapeRecord.php
32
-
Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ class ShapeRecord
48
48
/** @var ShapeFile */
49
49
private $ shapeFile = null ;
50
50
51
- /** @var int */
52
- private $ size = 0 ;
51
+ private int $ size = 0 ;
53
52
54
53
private int $ read = 0 ;
55
54
@@ -205,12 +204,13 @@ private function loadHeaders(): void
205
204
$ this ->recordNumber = (int ) $ recordNumber ;
206
205
207
206
// We read the length of the record
208
- $ this -> size = $ this ->loadData ('N ' , 4 );
209
- if ($ this -> size === false ) {
207
+ $ size = $ this ->loadData ('N ' , 4 );
208
+ if ($ size === false ) {
210
209
return ;
211
210
}
212
211
213
- $ this ->size = ($ this ->size * 2 ) + 8 ;
212
+ $ this ->size = ($ size * 2 ) + 8 ;
213
+
214
214
$ shapeType = $ this ->loadData ('V ' , 4 );
215
215
if ($ shapeType === false ) {
216
216
return ;
You can’t perform that action at this time.
0 commit comments