ArashT

Avatar
  • Total activity 8
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 2
  • Subscriptions 3
  • ArashT created a post,

    Using generics for constructor property

    Hi, In PhpStorm 2021.2.3 i can use generics for method return type: /** @return array<MyModel> */ function myMethod(): array { ... } Also for class property: /** @var array<MyModel> */ public array...
  • ArashT created a post,

    Using new keyword in attribute

    If i use new keyword in any attribute the IDE says: "Constant expression contains invalid operations" Example: ============================ #[MyAttr(arg1: new MyModel())] class Test { /* ... */ } =...
  • ArashT created a post,

    Sass: Unknown function 'div'

    https://sass-lang.com/documentation/breaking-changes/slash-div: Sass currently treats / as a division operation in some contexts and a separator in others. This makes it difficult for Sass users t...