@@ -575,7 +575,7 @@ public static function cellOrderCompare(string $ref1, string $ref2): int
575
575
* The corresponding row can also be automatically created if it does not exist already, but the worksheet cannot be automatically created.
576
576
*
577
577
* @param int $sheetNumber Worksheet number (base 1)
578
- * @param $cellName Cell name such as `B4`
578
+ * @param string $cellName Cell name such as `B4`
579
579
* @param int $accessMode To control the behaviour when the cell does not exist:
580
580
* set to `XlsxFastEditor::ACCESS_MODE_NULL` to return `null` (default),
581
581
* set to `XlsxFastEditor::ACCESS_MODE_EXCEPTION` to raise an `XlsxFastEditorInputException` exception,
@@ -614,7 +614,7 @@ public function getCell(int $sheetNumber, string $cellName, int $accessMode = Xl
614
614
case XlsxFastEditor::ACCESS_MODE_AUTOCREATE :
615
615
$ rowNumber = (int )preg_replace ('/[^\d]+/ ' , '' , $ cellName );
616
616
if ($ rowNumber === 0 ) {
617
- throw new \InvalidArgumentException ("Invalid cell reference {$ cellName }! " );
617
+ throw new \InvalidArgumentException ("Invalid line in cell reference {$ cellName }! " );
618
618
}
619
619
$ row = $ this ->getRow ($ sheetNumber , $ rowNumber , $ accessMode );
620
620
return $ row ->getCell ($ cellName , $ accessMode );
@@ -630,7 +630,7 @@ public function getCell(int $sheetNumber, string $cellName, int $accessMode = Xl
630
630
/**
631
631
* Access the specified cell in the specified worksheet, or null if if does not exist.
632
632
* @param int $sheetNumber Worksheet number (base 1)
633
- * @param $cellName Cell name such as `B4`
633
+ * @param string $cellName Cell name such as `B4`
634
634
* @return XlsxFastEditorCell|null A cell, potentially `null` if the cell does not exist
635
635
* @throws \InvalidArgumentException if `$cellName` has an invalid format
636
636
* @throws XlsxFastEditorFileFormatException
@@ -650,7 +650,7 @@ public function getCellOrNull(int $sheetNumber, string $cellName): ?XlsxFastEdit
650
650
* Access the specified cell in the specified worksheet, or autocreate it if it does not already exist.
651
651
* The corresponding row can also be automatically created if it does not exist already, but the worksheet cannot be automatically created.
652
652
* @param int $sheetNumber Worksheet number (base 1)
653
- * @param $cellName Cell name such as `B4`
653
+ * @param string $cellName Cell name such as `B4`
654
654
* @return XlsxFastEditorCell A cell
655
655
* @throws \InvalidArgumentException if `$cellName` has an invalid format
656
656
* @throws XlsxFastEditorFileFormatException
@@ -670,7 +670,7 @@ public function getCellAutocreate(int $sheetNumber, string $cellName): XlsxFastE
670
670
* Read a formula in the given worksheet at the given cell location.
671
671
*
672
672
* @param int $sheetNumber Worksheet number (base 1)
673
- * @param $cellName Cell name such as `B4`
673
+ * @param string $cellName Cell name such as `B4`
674
674
* @throws \InvalidArgumentException if `$cellName` has an invalid format
675
675
* @throws XlsxFastEditorFileFormatException
676
676
* @throws XlsxFastEditorXmlException
@@ -685,7 +685,7 @@ public function readFormula(int $sheetNumber, string $cellName): ?string
685
685
* Read a float in the given worksheet at the given cell location.
686
686
*
687
687
* @param int $sheetNumber Worksheet number (base 1)
688
- * @param $cellName Cell name such as `B4`
688
+ * @param string $cellName Cell name such as `B4`
689
689
* @throws \InvalidArgumentException if `$cellName` has an invalid format
690
690
* @throws XlsxFastEditorFileFormatException
691
691
* @throws XlsxFastEditorXmlException
@@ -700,7 +700,7 @@ public function readFloat(int $sheetNumber, string $cellName): ?float
700
700
* Read a date/time in the given worksheet at the given cell location.
701
701
*
702
702
* @param int $sheetNumber Worksheet number (base 1)
703
- * @param $cellName Cell name such as `B4`
703
+ * @param string $cellName Cell name such as `B4`
704
704
* @throws \InvalidArgumentException if `$cellName` has an invalid format
705
705
* @throws XlsxFastEditorFileFormatException
706
706
* @throws XlsxFastEditorXmlException
@@ -715,7 +715,7 @@ public function readDateTime(int $sheetNumber, string $cellName): ?\DateTimeImmu
715
715
* Read an integer in the given worksheet at the given cell location.
716
716
*
717
717
* @param int $sheetNumber Worksheet number (base 1)
718
- * @param $cellName Cell name such as `B4`
718
+ * @param string $cellName Cell name such as `B4`
719
719
* @throws \InvalidArgumentException if `$cellName` has an invalid format
720
720
* @throws XlsxFastEditorFileFormatException
721
721
* @throws XlsxFastEditorXmlException
@@ -754,7 +754,7 @@ public function _getSharedString(int $stringNumber): ?string
754
754
* compatible with the shared string approach.
755
755
*
756
756
* @param int $sheetNumber Worksheet number (base 1)
757
- * @param $cellName Cell name such as `B4`
757
+ * @param string $cellName Cell name such as `B4`
758
758
* @throws \InvalidArgumentException if `$cellName` has an invalid format
759
759
* @throws XlsxFastEditorFileFormatException
760
760
* @throws XlsxFastEditorXmlException
@@ -796,7 +796,7 @@ public function _getHyperlink(int $sheetNumber, string $rId): ?string
796
796
* Read a hyperlink in the given worksheet at the given cell location.
797
797
*
798
798
* @param int $sheetNumber Worksheet number (base 1)
799
- * @param $cellName Cell name such as `B4`
799
+ * @param string $cellName Cell name such as `B4`
800
800
* @throws \InvalidArgumentException if `$cellName` has an invalid format
801
801
* @throws XlsxFastEditorFileFormatException
802
802
* @throws XlsxFastEditorXmlException
@@ -843,7 +843,7 @@ public function _setHyperlink(int $sheetNumber, string $rId, string $value): boo
843
843
* Warning: does not support the creation of a new hyperlink.
844
844
*
845
845
* @param int $sheetNumber Worksheet number (base 1)
846
- * @param $cellName Cell name such as `B4`
846
+ * @param string $cellName Cell name such as `B4`
847
847
* @return bool True if the hyperlink could be replaced, false otherwise.
848
848
* @throws \InvalidArgumentException if `$cellName` has an invalid format
849
849
* @throws XlsxFastEditorFileFormatException
@@ -861,7 +861,7 @@ public function writeHyperlink(int $sheetNumber, string $cellName, string $value
861
861
* Removes the formulas of the cell, if any.
862
862
*
863
863
* @param int $sheetNumber Worksheet number (base 1)
864
- * @param $cellName Cell name such as `B4`
864
+ * @param string $cellName Cell name such as `B4`
865
865
* @throws \InvalidArgumentException if `$cellName` has an invalid format
866
866
* @throws XlsxFastEditorFileFormatException
867
867
* @throws XlsxFastEditorXmlException
@@ -878,7 +878,7 @@ public function writeFormula(int $sheetNumber, string $cellName, string $value):
878
878
* Removes the formulas of the cell, if any.
879
879
*
880
880
* @param int $sheetNumber Worksheet number (base 1)
881
- * @param $cellName Cell name such as `B4`
881
+ * @param string $cellName Cell name such as `B4`
882
882
* @param float $value
883
883
* @throws \InvalidArgumentException if `$cellName` has an invalid format
884
884
* @throws XlsxFastEditorFileFormatException
@@ -896,7 +896,7 @@ public function writeFloat(int $sheetNumber, string $cellName, float $value): vo
896
896
* Removes the formulas of the cell, if any.
897
897
*
898
898
* @param int $sheetNumber Worksheet number (base 1)
899
- * @param $cellName Cell name such as `B4`
899
+ * @param string $cellName Cell name such as `B4`
900
900
* @param int $value
901
901
* @throws \InvalidArgumentException if `$cellName` has an invalid format
902
902
* @throws XlsxFastEditorFileFormatException
@@ -959,7 +959,7 @@ public function _makeNewSharedString(string $value): int
959
959
* Removes the formulas of the cell, if any.
960
960
*
961
961
* @param int $sheetNumber Worksheet number (base 1)
962
- * @param $cellName Cell name such as `B4`
962
+ * @param string $cellName Cell name such as `B4`
963
963
* @throws \InvalidArgumentException if `$cellName` has an invalid format
964
964
* @throws XlsxFastEditorFileFormatException
965
965
* @throws XlsxFastEditorXmlException
0 commit comments