Skip to content

$_SERVER array contains known types #12252

Closed

Description

@JulianAtkins

Feature request

It would be nice to be more specific about the contents of the $_SERVER variable.

Here are some $_SERVER keys:

  • 'PHP_SELF' = string
  • 'argv' = array
  • 'argc' = int

Details at:
https://www.php.net/manual/en/reserved.variables.server.php

Sample:
https://phpstan.org/r/c76c06f2-d5fa-4f17-9684-3b19ae23f6bf

Thank you!

Did PHPStan help you today? Did it make you happy in any way?

Always a pleasure to work with PHPStan!

Activity

  1. ondrejmirtes commented on Dec 12, 2024

    @ondrejmirtes
    Member

    It's not possible. These can be reassigned to anything by the user script.

  2. github-actions commented on Jan 13, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  3. locked as resolved and limited conversation to collaborators on Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions