Change PHP Language Library in eclipse Oxygen

前端 未结 1 1674
轮回少年
轮回少年 2021-01-16 05:44

Eclipse for PHP Developers Version: Oxygen Release (4.7.0) Build id: 20170620-1800

How can I change the PHP Language Library to PHP 7 (see screen below)

1条回答
  •  星月不相逢
    2021-01-16 06:28

    1. Right-click on the project folder and choose Properties
    2. In the properties dialog, in PHP > Validation
      1. Enable project specific settings
      2. As PHP Version choose
        • 7.0 (uniform variable syntax, scalar type hint,...) or
        • 7.1 (void return types, class constant visibility,...)

    You also might configure installed PHPs: Window > Properties: PHP > Installed PHPs

    See also PHP help: PHP Interpreter Properties

    0 讨论(0)
提交回复
热议问题