Skip to content

Commit

Permalink
Merge branch 'release-3.0' into remove-backwards-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrsson committed Jan 12, 2024
2 parents e5a5b32 + 54a1a8c commit 2a9e42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tasks/UpdateUnicode.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,11 @@ public function export_funcs_to_file(): void
* to check whether a copy of the the function is already present
* in the file.
*
* @param string $func_name Key of an element in $this->funcs.
* @param string|int $func_name Key of an element in $this->funcs. If an int is provided, it is considered raw code such as a header, and does not replace a function in the file.
*
* @return array PHP code and a regular expression.
*/
private function get_function_code_and_regex(string $func_name): array
private function get_function_code_and_regex(string|int $func_name): array
{
// No function name means data is raw code.
if (!is_string($func_name)) {
Expand Down

0 comments on commit 2a9e42b

Please sign in to comment.