Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
T
Test
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Juliper
  • Test
  • Repository

Switch branch/tag
  • Test
  • ..
  • function
  • variadicDefaultValue.test
Find file
BlameHistoryPermalink
  • Juliper's avatar
    Bagin IV · 281136a3
    Juliper authored 8 years ago
    281136a3
variadicDefaultValue.test 564 Bytes
EditWeb IDE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Invalid variadic function
-----
<?php
function foo(...$foo = []) {}
-----
Variadic parameter cannot have a default value from 2:24 to 2:25
array(
    0: Stmt_Function(
        byRef: false
        name: foo
        params: array(
            0: Param(
                type: null
                byRef: false
                variadic: true
                name: foo
                default: Expr_Array(
                    items: array(
                    )
                )
            )
        )
        returnType: null
        stmts: array(
        )
    )
)
×

Replace variadicDefaultValue.test

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.