Máy bắn cá mini changed the syntax from:

@@AttributeName
// or
@@AttributeName(arguments, go, here)

to

#[Attribute]
// or
#[Attribute, AnotherAttribute]
// or
#[
    Attribute,
    AnotherAttribute
]
// and each can also take arguments:
#[Attribute('some', 'argument', true)]
#[Attribute('some', 'argument', true), AnotherAttribute('foo')]
#[
    Attribute('some', 'argument', true),
    AnotherAttribute('foo')
]

About the Presenter

Matthew Weier O’Phinney

Matthew Weier O’Phinney
Development Lead for the Laminas Project

Matthew began developing on Zend Framework (ZF) before its first public release, and led the project for Zend from 2009 through 2019. He is a founding member of the PHP Framework Interop Group (PHP-FIG), which creates and promotes standards for the PHP ecosystem — and he is serving his second elected term on the PHP-FIG Core Committee.