Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-13450

Type-hint return value of $phpbb_container->get()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.0-a1
    • 3.1.2
    • None
    • None

      Type-hint the return value of $phpbb_container->get() to have IDE auto-completion.

      Example:

      compatibility_globals.php

      /* @var $cache phpbb\cache\service */
      $cache = $phpbb_container->get('cache');
      

            nicofuma nicofuma
            M.Gaetan89 M.Gaetan89 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: