mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +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 */
|
/** @var string */
|
||||||
const ANIMAL = "Elephant";
|
const ANIMAL = "Elephant";
|
||||||
/** @var float */
|
/** @var float */
|
||||||
const WEIGHT_TON: 6.8;
|
const WEIGHT_TON = 6.8;
|
||||||
|
|
||||||
class Atmopshere {
|
class Atmopshere {
|
||||||
public function calculateBar(): float {}
|
public function calculateBar(): float {}
|
||||||
|
Loading…
Reference in New Issue
Block a user