File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Blueprint
1616
1717 public function __construct (private readonly string $ modelClass , private ?bool $ defer = null , private ?int $ cache = null )
1818 {
19- $ isCacheable = false ;
19+ $ isCacheable = null ;
2020 $ rc = new ReflectionClass ($ modelClass );
2121 foreach ($ rc ->getMethods (ReflectionMethod::IS_PUBLIC ) as $ method ) {
2222 foreach ($ method ->getAttributes () as $ attribute ) {
@@ -56,7 +56,7 @@ public function blueprintCacheKeyFromModel(): string
5656 public function toArray (): array
5757 {
5858 $ key = $ this ->blueprintCacheKeyFromModel ();
59- $ blueprint = $ this -> cache ? BlueprintCache::get ($ key , null , $ this ->cache ) : null ;
59+ $ blueprint = BlueprintCache::get ($ key , null , $ this ->cache );
6060 if ($ blueprint ) {
6161 return [$ key => $ blueprint ];
6262 }
Original file line number Diff line number Diff line change 11{
22 "name" : " bnomei/kirby-blueprints" ,
33 "type" : " kirby-plugin" ,
4- "version" : " 4.4.2 " ,
4+ "version" : " 4.4.3 " ,
55 "license" : " MIT" ,
66 "homepage" : " https://github.com/bnomei/kirby3-blueprints" ,
77 "description" : " PHP Class-based Blueprints for Kirby CMS for better type safety and code completion" ,
Original file line number Diff line number Diff line change 11<?php return array (
22 'root ' => array (
33 'name ' => 'bnomei/kirby-blueprints ' ,
4- 'pretty_version ' => '4.4.2 ' ,
5- 'version ' => '4.4.2 .0 ' ,
4+ 'pretty_version ' => '4.4.3 ' ,
5+ 'version ' => '4.4.3 .0 ' ,
66 'reference ' => null ,
77 'type ' => 'kirby-plugin ' ,
88 'install_path ' => __DIR__ . '/../../ ' ,
1111 ),
1212 'versions ' => array (
1313 'bnomei/kirby-blueprints ' => array (
14- 'pretty_version ' => '4.4.2 ' ,
15- 'version ' => '4.4.2 .0 ' ,
14+ 'pretty_version ' => '4.4.3 ' ,
15+ 'version ' => '4.4.3 .0 ' ,
1616 'reference ' => null ,
1717 'type ' => 'kirby-plugin ' ,
1818 'install_path ' => __DIR__ . '/../../ ' ,
You can’t perform that action at this time.
0 commit comments