File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99class ExtractOffset
1010{
1111 /**
12- * @return array< string>
12+ * @return array{ string,int,int}
1313 */
1414 public static function fromSource (string $ source , string $ marker = '<> ' ): array
1515 {
1616 list ($ source , $ offsetStart ) = self ::extractOffset ($ source , $ marker );
1717 list ($ source , $ offsetEnd ) = self ::extractOffset ($ source , $ marker );
1818
19- return [$ source , $ offsetStart , $ offsetEnd ];
19+ return [$ source , ( int ) $ offsetStart , ( int ) $ offsetEnd ];
2020 }
2121
2222 /**
2323 * Extract the byte offset from the given marked source
2424 * and remove the <> mark.
2525 *
26- * @return array<mixed>
26+ * @return array{string,int}
2727 */
2828 private static function extractOffset (string $ source , string $ marker ): array
2929 {
You can’t perform that action at this time.
0 commit comments