pdt icon indicating copy to clipboard operation
pdt copied to clipboard

Missing error on extending/implementing/importing scalar type

Open the-liquid-metal opened this issue 1 year ago • 0 comments

Bug Description Missing error on extending/implementing/importing scalar type.

Eclipse environment Version: 2023-06 (4.28.0) Build id: 20230608-1333 PDT: 8.0.0.202306050832

System

  • PHP Version: 8.2.7, 8.1.20, 8.0.29, 7.4.33 (via https://onlinephp.io/)

To Reproduce Steps to reproduce the behavior: copy-paste this script to the IDE

<?php
declare(strict_types=1);

namespace ns1\ns2;

interface Test15 extends string {} // this statement must trigger error

class Test15b extends string {}    // this statement must trigger error

class Test15c implements string {} // this statement must trigger error

class Test15d {
    use string; // this statement must trigger error
}

the-liquid-metal avatar Jun 17 '23 03:06 the-liquid-metal