mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
[skip ci] docs: fix constant syntax in stubs.rst (#15785)
Constants are declared with `=` not `:`
This commit is contained in:
parent
047f0c9657
commit
4a4574290f
@ -31,7 +31,7 @@ using namespace blocks:
|
||||
/** @var string */
|
||||
const ANIMAL = "Elephant";
|
||||
/** @var float */
|
||||
const WEIGHT_TON: 6.8;
|
||||
const WEIGHT_TON = 6.8;
|
||||
|
||||
class Atmopshere {
|
||||
public function calculateBar(): float {}
|
||||
|
Loading…
Reference in New Issue
Block a user