Skip to content

Commit 83d8f68

Browse files
committed
Bump to 1.2.0
1 parent 454783a commit 83d8f68

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org).
66

77
## [Unreleased]
88

9+
## [1.2.0] - 2026-07-27
10+
911
### Added
1012
- Added the `::class` magic constant: `self::class`, `parent::class` and `ClassName::class` resolve to the fully-qualified class name at compile time, and `static::class` resolves to the called class at runtime (late static binding) [#2527](https://github.com/zephir-lang/zephir/issues/2527)
1113
- Trait properties can now have array default values (e.g. `trait T { public opts = [1, 2, 3]; }`, including empty, keyed and nested arrays). The default is materialized as a persistent immutable array on the trait's class entry, so it is carried into both Zephir classes and PHP userland classes that `use` the trait, matching native PHP trait semantics. Static array defaults on traits remain rejected (Zephir resolves `self::` in a trait to the trait itself, so each using class could not get its own copy) [#2607](https://github.com/zephir-lang/zephir/issues/2607)

ext/php_stub.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define PHP_STUB_VERSION "1.0.0"
1515
#define PHP_STUB_EXTNAME "stub"
1616
#define PHP_STUB_AUTHOR "Phalcon Team and contributors"
17-
#define PHP_STUB_ZEPVERSION "1.1.0-$Id$"
17+
#define PHP_STUB_ZEPVERSION "1.2.0-$Id$"
1818
#define PHP_STUB_DESCRIPTION "Description <b>test</b> for<br/>Test Extension."
1919

2020
#define ZEPHIR_GENERATOR_ENABLED 1

src/Zephir.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ final class Zephir
2525

2626

2727
ASCII;
28-
public const VERSION = '1.1.0-$Id$';
28+
public const VERSION = '1.2.0-$Id$';
2929
}

0 commit comments

Comments
 (0)