[{"data":1,"prerenderedAt":3257},["ShallowReactive",2],{"libs":3,"navigation-laravel-api-revisions":115,"\u002Flaravel-api-revisions\u002Fchangelog":299,"\u002Flaravel-api-revisions\u002Fchangelog-surround":3252},[4,45,69,95],{"id":5,"color":6,"compatibility":7,"extension":20,"icon":21,"links":22,"meta":27,"name":28,"order":29,"package":30,"related":31,"stem":34,"tagline":35,"__hash__":36,"slug":37,"repository":38,"branch":39,"path":40,"collection":41,"entry":42,"home":43,"version":44},"laravel_json_api_meta\u002Fdocs\u002Fsite\u002Flib.yml","violet",[8,13,16],{"version":9,"php":10,"laravel":11,"status":12},"3.x","^8.3","^12.46 || ^13.0","active",{"version":14,"php":10,"laravel":11,"status":15},"2.x","eol",{"version":17,"php":18,"laravel":19,"status":15},"1.x","^8.1","^10.0 || ^11.0 || ^12.0 || ^13.0","yml","i-lucide-braces",[23],{"label":24,"to":25,"icon":26},"JSON:API 1.1","https:\u002F\u002Fjsonapi.org\u002Fformat\u002F","i-lucide-book-marked",{},"Laravel JSON:API",10,"ark4ne\u002Flaravel-json-api",[32,33],"laravel-api-revisions","laravel-openapi-generator","docs\u002Fsite\u002Flib","JSON:API 1.1 resources for Laravel, with typed values, validated includes and fieldsets, and API revisions.","ILGoVp9rzKYDQc18VV8kkXy3EQOQ8rv87JblFKXYDrU","laravel-json-api","Ark4ne\u002Flaravel-json-api","master","docs\u002Fsite","laravel_json_api","\u002Flaravel-json-api\u002Fgetting-started\u002Fintroduction","\u002Flaravel-json-api","v3.0.0",{"id":46,"color":47,"compatibility":48,"extension":20,"icon":50,"links":51,"meta":56,"name":57,"order":58,"package":59,"related":60,"stem":34,"tagline":61,"__hash__":62,"slug":32,"repository":63,"branch":64,"path":40,"collection":65,"entry":66,"home":67,"version":68},"laravel_api_revisions_meta\u002Fdocs\u002Fsite\u002Flib.yml","amber",[49],{"version":17,"php":10,"laravel":11,"status":12},"i-lucide-git-branch",[52],{"label":53,"to":54,"icon":55},"Agent skill","https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-api-revisions\u002Ftree\u002Fmain\u002Fskills\u002Flaravel-api-revisions","i-lucide-bot",{},"Laravel API Revisions",20,"ark4ne\u002Flaravel-api-revisions",[37,33],"Typed schemas for Laravel resources and form requests, evolved through dated API revisions, Stripe-style.","w24MBVK4_XliIZ8nVcfnuT9OgR-m-Ytxz31Pxua_mLM","Ark4ne\u002Flaravel-api-revisions","main","laravel_api_revisions","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fintroduction","\u002Flaravel-api-revisions","v1.0.0",{"id":70,"color":71,"compatibility":72,"extension":20,"icon":77,"links":78,"meta":82,"name":83,"order":84,"package":85,"related":86,"stem":34,"tagline":88,"__hash__":89,"slug":33,"repository":90,"branch":39,"path":40,"collection":91,"entry":92,"home":93,"version":94},"laravel_openapi_generator_meta\u002Fdocs\u002Fsite\u002Flib.yml","emerald",[73,75],{"version":17,"php":10,"laravel":74,"status":12},"^13.0",{"version":76,"php":18,"laravel":19,"status":15},"0.6","i-lucide-file-json",[79],{"label":80,"to":81,"icon":26},"OpenAPI Specification","https:\u002F\u002Fspec.openapis.org\u002Foas\u002Flatest.html",{},"Laravel OpenAPI Generator",30,"ark4ne\u002Flaravel-openapi-generator",[87,37,32],"openapi-writer","Generates OpenAPI 3.0, 3.1 and 3.2 documents from a Laravel application, its routes, form requests and resources.","DTt0SVqegMImLmWmwL8LCW5lxRCWFYcnBFOaquLpVwc","Ark4ne\u002Flaravel-openapi-generator","laravel_openapi_generator","\u002Flaravel-openapi-generator\u002Fgetting-started\u002Fintroduction","\u002Flaravel-openapi-generator","v1.2.0",{"id":96,"color":97,"compatibility":98,"extension":20,"icon":101,"links":102,"meta":104,"name":105,"order":106,"package":107,"related":108,"stem":34,"tagline":109,"__hash__":110,"slug":87,"repository":111,"branch":64,"path":40,"collection":112,"entry":113,"home":114,"version":68},"openapi_writer_meta\u002Fdocs\u002Fsite\u002Flib.yml","sky",[99],{"version":17,"php":100,"status":12},"^8.2","i-lucide-file-pen-line",[103],{"label":80,"to":81,"icon":26},{},"OpenAPI Writer",40,"ark4ne\u002Fopenapi-writer",[33],"Framework-agnostic, fluent and immutable PHP builder for OpenAPI 3.0, 3.1 and 3.2 documents, written as JSON or YAML and validated.","JFQcdQ9GEChOkfRKibLjoxZOfnt6HYNsayX2melOzMk","Ark4ne\u002Fopenapi-writer","openapi_writer","\u002Fopenapi-writer\u002Fgetting-started\u002Fintroduction","\u002Fopenapi-writer",[116,135,153,175,205,235,257,287],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Flaravel-api-revisions\u002Fgetting-started","laravel-api-revisions\u002F1.getting-started",[124,127,131],{"title":125,"path":66,"stem":126,"since":118,"experimental":119},"Introduction","laravel-api-revisions\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Flaravel-api-revisions\u002Fgetting-started\u002Finstallation","laravel-api-revisions\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fquick-start","laravel-api-revisions\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Revisions","i-lucide-calendar-clock","\u002Flaravel-api-revisions\u002Frevisions","laravel-api-revisions\u002F2.revisions",[141,145,149],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"The revision enum","\u002Flaravel-api-revisions\u002Frevisions\u002Fthe-revision-enum","laravel-api-revisions\u002F2.revisions\u002F1.the-revision-enum",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Resolving the revision","\u002Flaravel-api-revisions\u002Frevisions\u002Fresolving-the-revision","laravel-api-revisions\u002F2.revisions\u002F2.resolving-the-revision",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Outside HTTP","\u002Flaravel-api-revisions\u002Frevisions\u002Foutside-http","laravel-api-revisions\u002F2.revisions\u002F3.outside-http",{"title":154,"since":118,"experimental":119,"icon":155,"path":156,"stem":157,"children":158,"page":119},"Declaring the head","i-lucide-file-code","\u002Flaravel-api-revisions\u002Fdeclaring-the-head","laravel-api-revisions\u002F3.declaring-the-head",[159,163,167,171],{"title":160,"path":161,"stem":162,"since":118,"experimental":119},"Schema vocabulary","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fschema-vocabulary","laravel-api-revisions\u002F3.declaring-the-head\u002F1.schema-vocabulary",{"title":164,"path":165,"stem":166,"since":118,"experimental":119},"Sources and conditions","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fsources-and-conditions","laravel-api-revisions\u002F3.declaring-the-head\u002F2.sources-and-conditions",{"title":168,"path":169,"stem":170,"since":118,"experimental":119},"Responses","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fresponses","laravel-api-revisions\u002F3.declaring-the-head\u002F3.responses",{"title":172,"path":173,"stem":174,"since":118,"experimental":119},"Requests","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Frequests","laravel-api-revisions\u002F3.declaring-the-head\u002F4.requests",{"title":176,"since":118,"experimental":119,"icon":177,"path":178,"stem":179,"children":180,"page":119},"Evolving the API","i-lucide-history","\u002Flaravel-api-revisions\u002Fevolving-the-api","laravel-api-revisions\u002F4.evolving-the-api",[181,185,189,193,197,201],{"title":182,"path":183,"stem":184,"since":118,"experimental":119},"Adding a revision","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fadding-a-revision","laravel-api-revisions\u002F4.evolving-the-api\u002F1.adding-a-revision",{"title":186,"path":187,"stem":188,"since":118,"experimental":119},"Adding and removing fields","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fadding-and-removing","laravel-api-revisions\u002F4.evolving-the-api\u002F2.adding-and-removing",{"title":190,"path":191,"stem":192,"since":118,"experimental":119},"Renaming and retyping","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Frenaming-and-retyping","laravel-api-revisions\u002F4.evolving-the-api\u002F3.renaming-and-retyping",{"title":194,"path":195,"stem":196,"since":118,"experimental":119},"Conversions","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fconversions","laravel-api-revisions\u002F4.evolving-the-api\u002F4.conversions",{"title":198,"path":199,"stem":200,"since":118,"experimental":119},"Class lifetime","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fclass-lifetime","laravel-api-revisions\u002F4.evolving-the-api\u002F5.class-lifetime",{"title":202,"path":203,"stem":204,"since":118,"experimental":119},"Retiring a revision","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fretiring-a-revision","laravel-api-revisions\u002F4.evolving-the-api\u002F6.retiring-a-revision",{"title":206,"since":118,"experimental":119,"icon":207,"path":208,"stem":209,"children":210,"page":119},"Tooling","i-lucide-wrench","\u002Flaravel-api-revisions\u002Ftooling","laravel-api-revisions\u002F5.tooling",[211,215,219,223,227,231],{"title":212,"path":213,"stem":214,"since":118,"experimental":119},"Check","\u002Flaravel-api-revisions\u002Ftooling\u002Fcheck","laravel-api-revisions\u002F5.tooling\u002F1.check",{"title":216,"path":217,"stem":218,"since":118,"experimental":119},"Lock","\u002Flaravel-api-revisions\u002Ftooling\u002Flock","laravel-api-revisions\u002F5.tooling\u002F2.lock",{"title":220,"path":221,"stem":222,"since":118,"experimental":119},"Export and changelog","\u002Flaravel-api-revisions\u002Ftooling\u002Fexport-and-changelog","laravel-api-revisions\u002F5.tooling\u002F3.export-and-changelog",{"title":224,"path":225,"stem":226,"since":118,"experimental":119},"Testing","\u002Flaravel-api-revisions\u002Ftooling\u002Ftesting","laravel-api-revisions\u002F5.tooling\u002F4.testing",{"title":228,"path":229,"stem":230,"since":118,"experimental":119},"Static analysis","\u002Flaravel-api-revisions\u002Ftooling\u002Fstatic-analysis","laravel-api-revisions\u002F5.tooling\u002F5.static-analysis",{"title":232,"path":233,"stem":234,"since":118,"experimental":119},"Performance and Octane","\u002Flaravel-api-revisions\u002Ftooling\u002Fperformance-and-octane","laravel-api-revisions\u002F5.tooling\u002F6.performance-and-octane",{"title":236,"since":118,"experimental":119,"icon":237,"path":238,"stem":239,"children":240,"page":119},"Extending","i-lucide-puzzle","\u002Flaravel-api-revisions\u002Fextending","laravel-api-revisions\u002F6.extending",[241,245,249,253],{"title":242,"path":243,"stem":244,"since":118,"experimental":119},"Custom types","\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-types","laravel-api-revisions\u002F6.extending\u002F1.custom-types",{"title":246,"path":247,"stem":248,"since":118,"experimental":119},"Descriptor macros","\u002Flaravel-api-revisions\u002Fextending\u002Fdescriptor-macros","laravel-api-revisions\u002F6.extending\u002F2.descriptor-macros",{"title":250,"path":251,"stem":252,"since":118,"experimental":119},"Custom checks","\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-checks","laravel-api-revisions\u002F6.extending\u002F3.custom-checks",{"title":254,"path":255,"stem":256,"since":118,"experimental":119},"Without Laravel","\u002Flaravel-api-revisions\u002Fextending\u002Fwithout-laravel","laravel-api-revisions\u002F6.extending\u002F4.without-laravel",{"title":258,"since":118,"experimental":119,"icon":259,"path":260,"stem":261,"children":262,"page":119},"Reference","i-lucide-book-open","\u002Flaravel-api-revisions\u002Freference","laravel-api-revisions\u002F7.reference",[263,267,271,275,279,283],{"title":264,"path":265,"stem":266,"since":118,"experimental":119},"Configuration","\u002Flaravel-api-revisions\u002Freference\u002Fconfiguration","laravel-api-revisions\u002F7.reference\u002F1.configuration",{"title":268,"path":269,"stem":270,"since":118,"experimental":119},"Schema helpers","\u002Flaravel-api-revisions\u002Freference\u002Fschema-helpers","laravel-api-revisions\u002F7.reference\u002F2.schema-helpers",{"title":272,"path":273,"stem":274,"since":118,"experimental":119},"Revision methods","\u002Flaravel-api-revisions\u002Freference\u002Frevision-methods","laravel-api-revisions\u002F7.reference\u002F3.revision-methods",{"title":276,"path":277,"stem":278,"since":118,"experimental":119},"Commands","\u002Flaravel-api-revisions\u002Freference\u002Fcommands","laravel-api-revisions\u002F7.reference\u002F4.commands",{"title":280,"path":281,"stem":282,"since":118,"experimental":119},"Check diagnostics","\u002Flaravel-api-revisions\u002Freference\u002Fcheck-diagnostics","laravel-api-revisions\u002F7.reference\u002F5.check-diagnostics",{"title":284,"path":285,"stem":286,"since":118,"experimental":119},"Exceptions","\u002Flaravel-api-revisions\u002Freference\u002Fexceptions","laravel-api-revisions\u002F7.reference\u002F6.exceptions",{"title":288,"path":289,"children":290},"Releases","\u002Flaravel-api-revisions\u002Freleases",[291,295],{"title":292,"path":293,"stem":294,"since":118,"experimental":119},"Upgrade guide","\u002Flaravel-api-revisions\u002Fupgrade","laravel-api-revisions\u002FUPGRADE",{"title":296,"path":297,"stem":298,"since":118,"experimental":119},"Changelog","\u002Flaravel-api-revisions\u002Fchangelog","laravel-api-revisions\u002FCHANGELOG",{"id":300,"title":296,"body":301,"description":311,"experimental":119,"extension":3246,"links":118,"meta":3247,"navigation":3248,"path":297,"rawbody":3249,"seo":3250,"since":118,"stem":298,"__hash__":3251},"laravel_api_revisions\u002Flaravel-api-revisions\u002FCHANGELOG.md",{"type":302,"value":303,"toc":3237},"minimark",[304,308,312,329,337,342,3168,3172],[305,306,296],"h1",{"id":307},"changelog",[309,310,311],"p",{},"All notable changes to this project are documented in this file.",[309,313,314,315,322,323,328],{},"The format is based on ",[316,317,321],"a",{"href":318,"rel":319},"https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F",[320],"nofollow","Keep a Changelog",", and this project adheres to\n",[316,324,327],{"href":325,"rel":326},"https:\u002F\u002Fsemver.org\u002Fspec\u002Fv2.0.0.html",[320],"Semantic Versioning",".",[330,331,333],"h2",{"id":332},"unreleased",[334,335,336],"span",{},"Unreleased",[338,339,341],"h3",{"id":340},"added","Added",[343,344,345,356,390,404,427,465,488,506,528,546,560,600,607,660,687,717,767,784,806,813,853,896,918,995,1011,1038,1081,1105,1136,1173,1194,1255,1297,1349,1371,1410,1450,1518,1590,1629,1674,1747,1803,1853,1909,1919,1947,2013,2057,2096,2127,2197,2232,2264,2293,2314,2343,2377,2409,2462,2477,2486,2508,2532,2612,2723,2766,2778,2850,2879,2892,2940,2996,3023,3072,3088,3131,3154],"ul",{},[346,347,348,352,353,328],"li",{},[349,350,351],"code",{},"Descriptor::unless(Closure)",": the negation of ",[349,354,355],{},"when()",[346,357,358,361,362,365,366,369,370,373,374,377,378,381,382,385,386,389],{},[349,359,360],{},"Export\\RegexPattern::of()"," and ",[349,363,364],{},"Export\\DatePattern::of()"," are public contract (no longer ",[349,367,368],{},"@internal","): a\ngenerator gets the ECMA ",[349,371,372],{},"pattern"," ",[349,375,376],{},"JsonSchemaExporter"," writes for a string pattern, or for a date format JSON\nSchema does not name (",[349,379,380],{},"Y-m-d",", RFC 3339 and RFC 3339 extended export ",[349,383,384],{},"format","), ",[349,387,388],{},"null"," when there is none.",[346,391,392,395,396,399,400,403],{},[349,393,394],{},"Checking\\Checker::forClasses(ClassFinder)",": the checker the provider binds on a subset of the classes, every\nbuilt-in, Laravel and tagged rule included, so a consumer's own check command does not rebuild the list;\n",[349,397,398],{},"CheckContext::$subset"," tells a check it runs on a subset, and ",[349,401,402],{},"LockMismatch"," then reports no locked class gone.",[346,405,406,407,410,411,414,415,418,419,422,423,426],{},"Automatic date ↔ date-time conversions (",[349,408,409],{},"Conversion\\BuiltIn\\DateTimeToDate",", ",[349,412,413],{},"DateToDateTime","), lossless in\nboth directions: a date-time that was a date (or a date that was a date-time) needs no ",[349,416,417],{},"down:"," \u002F ",[349,420,421],{},"up:"," any more.\nThe day is written in the timezone of the value (never shifted to UTC); a date becomes midnight of its day. A\ndate-time sent where the head is a date warns ",[349,424,425],{},"conversion-lossy"," (its time is dropped).",[346,428,429,430,433,434,437,438,441,442,445,446,410,449,452,453,456,457,460,461,464],{},"Descriptor macros: ",[349,431,432],{},"Schema\\DescriptorMacros::register($name, Closure)"," adds a fluent method to every descriptor,\nserved by ",[349,435,436],{},"Descriptor::__call()"," (",[349,439,440],{},"Schema::string()->whenInFields('notes')","). The closure receives the descriptor,\nthen the arguments, and must return an instance of the descriptor's class; a name ",[349,443,444],{},"Descriptor"," declares is refused\nand a public method of the descriptor's own class wins. New ",[349,447,448],{},"DefinitionException::invalidMacroName()",[349,450,451],{},"unknownMacro()","\nand ",[349,454,455],{},"invalidMacroResult()",". PHPStan: ",[349,458,459],{},"apiRevisions.macros"," maps each name to its static method\n(",[349,462,463],{},"PHPStan\\DescriptorMacrosExtension","), typed with the method's parameters after the descriptor and returning the\nreceiver's type.",[346,466,467,468,471,472,475,476,479,480,483,484,487],{},"Projection plan: ",[349,469,470],{},"Projection\\Projector::plan(Shape, descriptors, ?keys)"," resolves a projection once per render into a\n",[349,473,474],{},"Projection\\ProjectionPlan",", run per subject (",[349,477,478],{},"run($subject)","); ",[349,481,482],{},"keys"," keeps those head keys of the top level\n(a sparse fieldset). ",[349,485,486],{},"Projector::project()"," runs through it.",[346,489,490,491,493,494,497,498,501,502,505],{},"Paths in a projection plan: a ",[349,492,482],{}," entry of ",[349,495,496],{},"Projector::plan()"," may be a dotted path of head keys (",[349,499,500],{},"address.city",",\n",[349,503,504],{},"tags.*.name","), keeping only that member of an object or of each item of a list; a member left out is never\nevaluated (source, conditions, conversions, value errors). A shorter path wins; a path into a field converted at\nthe revision, a list through a key, a resource or a scalar keeps the field whole; a head key of the top level holding\na dot is still kept whole.",[346,507,508,511,512,515,516,519,520,523,524,527],{},[349,509,510],{},"RevisionedResource::collection()"," returns a ",[349,513,514],{},"Laravel\\Resources\\RevisionedResourceCollection",": ",[349,517,518],{},"toArray()"," runs\nonce per render on a template instance and every item goes through one plan (about 4.5 times faster on the\nbenchmark). A resource whose structure depends on its model in plain PHP opts out with\n",[349,521,522],{},"static revisionedPerSubject(): bool"," returning ",[349,525,526],{},"true","; plain values and native conditions keep the per-item path.",[346,529,530,531,534,535,538,539,542,543,545],{},"Benchmark: a ",[349,532,533],{},"lookup"," scenario keeps ",[349,536,537],{},"Shapes::for()"," on a cached class at one array read and one ",[349,540,541],{},"unserialize()","\n(against the bare ",[349,544,541],{}," of the same entries).",[346,547,548,551,552,555,556,559],{},[349,549,550],{},"Checking\\Declarations",": the discovered classes with their declaration kinds (",[349,553,554],{},"declarations()","), or those existing at\none revision (",[349,557,558],{},"at()","), resolvable from the container.",[346,561,562,563,566,567,501,570,418,573,576,577,410,580,583,584,587,588,418,591,410,594,361,597,328],{},"Public contract under semver from 1.0, named in ",[349,564,565],{},"docs\u002Farchitecture.md"," §4: the definition model, ",[349,568,569],{},"Shape",[349,571,572],{},"JsonSchemaExporter::export()",[349,574,575],{},"objects()",", the structure of ",[349,578,579],{},"revision:export",[349,581,582],{},"Changelog::changes()"," \u002F\n",[349,585,586],{},"markdown()"," with ",[349,589,590],{},"Change",[349,592,593],{},"ChangeKind",[349,595,596],{},"ClassFinder",[349,598,599],{},"Declarations",[346,601,602,603,606],{},"Documentation: the README (install, the enum, a resource, a request, resolution, check and lock in CI, retiring a\nrevision, outside HTTP, testing) and the guide ",[349,604,605],{},"docs\u002Fguide.md",", covering every feature.",[346,608,609,610,613,614,616,617,437,620,623,624,627,628,631,632,418,635,385,638,641,642,645,646,418,649,652,653,361,656,659],{},"Without configured enum (",[349,611,612],{},"revisions.enum"," left ",[349,615,388],{},"), the library works on the implicit one-case\n",[349,618,619],{},"Revisions\\Unrevisioned",[349,621,622],{},"head","): resources render, requests validate and every command succeeds, with no history;\nthe ",[349,625,626],{},"revision"," middleware resolves nothing and adds no revision header, a queued job captures no revision,\n",[349,629,630],{},"revision:changelog"," has no change to list (as for any one-case enum without ",[349,633,634],{},"--from",[349,636,637],{},"--to",[349,639,640],{},"revision:lock","\nlocks nothing, a job captured earlier runs in the head. A ",[349,643,644],{},"default"," other than ",[349,647,648],{},"latest",[349,650,651],{},"oldest"," without enum is\nrefused; ",[349,654,655],{},"Route::revisioned()",[349,657,658],{},"withRevision()"," throw, naming the missing enum.",[346,661,662,663,666,667,437,670,673,674,361,677,680,681,683,684,328],{},"Checks contributed by a package or an application: a ",[349,664,665],{},"Checking\\Check"," tagged\n",[349,668,669],{},"Laravel\\RevisionsServiceProvider::CHECKS",[349,671,672],{},"'revisions.checks'",") is built by the container and run after the built-in\nchecks by ",[349,675,676],{},"revision:check",[349,678,679],{},"assertRevisionsAreConsistent()","; a tagged service that is not a ",[349,682,212],{}," throws\n",[349,685,686],{},"ConfigurationException::notACheck()",[346,688,689,692,693,696,697,700,701,704,705,708,709,712,713,716],{},[349,690,691],{},"Conversion\\Converters::identity(string $name)"," (and ",[349,694,695],{},"isIdentity()","): a custom type declares, in its\n",[349,698,699],{},"DeclaresConversions::conversions()",", that its values do not depend on its fragment. A ",[349,702,703],{},"was(schema:)"," changing only\nits fragment then plans no conversion step (no ",[349,706,707],{},"conversion-missing","), still shown in the export, the lock and the\nchangelog; such a type is exported in place rather than as a ",[349,710,711],{},"$defs"," component, so two of its fragments in one\nrevision never conflict. ",[349,714,715],{},"Compilation\\Shapes::converters()"," gives the registry the shapes are planned against.",[346,718,719,720,723,724,437,727,730,731,418,734,737,738,741,742,745,746,410,749,751,752,755,756,759,760,763,764,328],{},"Class lifetime: a ",[349,721,722],{},"Revisioned"," class implementing ",[349,725,726],{},"Schema\\HasLifetime",[349,728,729],{},"static revisionedLifetime(): Lifetime",",\nwith the new ",[349,732,733],{},"Lifetime::since(R)",[349,735,736],{},"Lifetime::until(R)",") exists only in those revisions; ",[349,739,740],{},"Schema\\ClassLifetime::exists()","\ntells whether it exists at a revision. Compiling it elsewhere throws ",[349,743,744],{},"DefinitionException::classAbsent()",". The\ncheck, ",[349,747,748],{},"revision:cache",[349,750,579],{},", the lock and ",[349,753,754],{},"assertRendersAtEveryRevision()"," skip the revisions it does\nnot exist in (a lock file lists the classes existing at its revision); the changelog lists the class added and\nremoved. New check code ",[349,757,758],{},"resource-absent",": a visible ",[349,761,762],{},"Schema::resource()"," field nesting a class absent at its\nrevision. A locked revision holding a class now absent there is a ",[349,765,766],{},"lock-mismatch",[346,768,769,770,773,774,777,778,780,781,328],{},"A class implementing ",[349,771,772],{},"Schema\\Revisioned"," itself, without the Laravel traits, is a supported path (compiled, cached,\nchecked, locked, exported); ",[349,775,776],{},"Revisioned::describeRevisioned()"," is no longer ",[349,779,368],{},", and may build the\ndeclaration on the implementer's own stand-in instead of the ",[349,782,783],{},"Probe",[346,785,786,787,790,791,794,795,797,798,801,802,805],{},"Agent skill ",[349,788,789],{},"skills\u002Flaravel-api-revisions\u002F",", shipped with the package: ",[349,792,793],{},"SKILL.md"," (the rules that prevent most\nmistakes, such as the writing rule of the bounds and the value a ",[349,796,417],{}," closure receives), ",[349,799,800],{},"reference.md"," (every\npublic entry point) and ",[349,803,804],{},"recipes.md"," (tested examples of the common tasks).",[346,807,808,809,812],{},"Package skeleton: ",[349,810,811],{},"Ark4ne\\ApiRevisions\\Laravel\\RevisionsServiceProvider",", auto-discovered by Laravel.",[346,814,815,816,819,820,823,824,410,827,410,830,410,833,410,836,410,839,410,842,410,845,848,849,852],{},"Revisions: the ",[349,817,818],{},"Revisions\\Revision"," contract and the ",[349,821,822],{},"Revisions\\IsRevision"," trait for an application's revision enum\n(",[349,825,826],{},"isBefore()",[349,828,829],{},"isAfter()",[349,831,832],{},"isAtLeast()",[349,834,835],{},"isAtMost()",[349,837,838],{},"previous()",[349,840,841],{},"next()",[349,843,844],{},"latest()",[349,846,847],{},"oldest()","), ordered by\nits explicit ",[349,850,851],{},"order()",", never by declaration or backed value; string- and int-backed enums.",[346,854,855,858,859,410,862,410,865,410,868,871,872,874,875,878,879,882,883,418,886,889,890,418,893,328],{},[349,856,857],{},"#[Revisions\\Meta]"," on a revision case (",[349,860,861],{},"description",[349,863,864],{},"publishedAt",[349,866,867],{},"deprecatedAt",[349,869,870],{},"sunsetAt"," as ",[349,873,380],{}," days,\nchecked when read), ",[349,876,877],{},"Revision::meta()"," (an empty ",[349,880,881],{},"Meta"," when absent), ",[349,884,885],{},"Meta::isDeprecated()",[349,887,888],{},"isSunset()"," from\ntheir day included; ",[349,891,892],{},"DefinitionException::invalidMetaDate()",[349,894,895],{},"invalidMeta()",[346,897,898,899,902,903,906,907,910,911,914,915,328],{},"Current revision: ",[349,900,901],{},"Revision::current()"," (the innermost ",[349,904,905],{},"using()",", else the revision of the context, else the head)\nand ",[349,908,909],{},"Revision::using($revision, $callback)"," (restores the previous revision, even when the callback throws; render inside the callback);\n",[349,912,913],{},"Revisions\\RevisionScope",", the only holder of the current revision, found through ",[349,916,917],{},"RevisionScope::provider()",[346,919,920,921,410,924,410,927,410,930,523,933,437,936,501,939,410,942,410,945,385,948,418,951,437,954,410,956,385,958,961,962,965,966,969,970,385,973,410,976,501,979,410,982,410,985,410,988,410,991,994],{},"Schema vocabulary: ",[349,922,923],{},"Schema\\Schema::string()",[349,925,926],{},"int()",[349,928,929],{},"float()",[349,931,932],{},"bool()",[349,934,935],{},"StringSchema",[349,937,938],{},"min()",[349,940,941],{},"max()",[349,943,944],{},"format()",[349,946,947],{},"pattern()",[349,949,950],{},"IntSchema",[349,952,953],{},"FloatSchema",[349,955,938],{},[349,957,941],{},[349,959,960],{},"BoolSchema","; every descriptor\n(",[349,963,964],{},"Schema\\Descriptor",", the extension base) has a lazy source (the declared key, a key or dotted path, or a closure\n",[349,967,968],{},"($value, $subject)","; an evaluated value throws ",[349,971,972],{},"DefinitionException::eagerSource()",[349,974,975],{},"nullable()",[349,977,978],{},"required()",[349,980,981],{},"sometimes()",[349,983,984],{},"describe()",[349,986,987],{},"example()",[349,989,990],{},"deprecated()",[349,992,993],{},"rules()",", and returns a new instance on every modifier.",[346,996,997,418,1000,1003,1004,1007,1008,328],{},[349,998,999],{},"normalize()",[349,1001,1002],{},"serialize()"," of the scalars; a refused value is returned as a ",[349,1005,1006],{},"Schema\\InvalidValue","\ncarrying its lenient cast. An evaluated source is refused even in a file without ",[349,1009,1010],{},"strict_types",[346,1012,1013,418,1016,437,1019,418,1022,410,1025,1027,1028,1030,1031,437,1034,1037],{},[349,1014,1015],{},"Schema::date()",[349,1017,1018],{},"dateTime()",[349,1020,1021],{},"DateSchema",[349,1023,1024],{},"DateTimeSchema",[349,1026,944],{},", else the configured default: ",[349,1029,380],{},"\nand RFC 3339) and ",[349,1032,1033],{},"Schema::enum(BackedEnum::class)",[349,1035,1036],{},"EnumSchema",": the case or its backed value, serialized as the\nbacked value; its type exports the enum, its backing kind and its values).",[346,1039,1040,437,1043,410,1046,418,1048,1050,1051,1054,1055,437,1058,1061,1062,1065,1066,1069,1070,1073,1074,1077,1078,328],{},[349,1041,1042],{},"Schema::list(Descriptor $items, $source)",[349,1044,1045],{},"ListSchema",[349,1047,938],{},[349,1049,941],{}," on the size; any ",[349,1052,1053],{},"iterable"," normalized\nto a list) and ",[349,1056,1057],{},"Schema::object(array\u003Cstring, Descriptor> $children, $source)",[349,1059,1060],{},"ObjectSchema",", its value is the\nsubject of its children; serialized as a JSON object even when empty), nested freely; ",[349,1063,1064],{},"configure()"," reaches items\nand children; the children are projected before the composite's own conversions. An object without\nsource reads its children on the parent's subject (",[349,1067,1068],{},"Schema\\Source::parent()","). ",[349,1071,1072],{},"TypeDefinition"," exports ",[349,1075,1076],{},"items"," and\n",[349,1079,1080],{},"children",[346,1082,1083,437,1086,1089,1090,1093,1094,1097,1098,1101,1102,328],{},[349,1084,1085],{},"Schema::rule(array $rules, $source)",[349,1087,1088],{},"RuleSchema",", the escape hatch: kind ",[349,1091,1092],{},"Any",", any value rendered as it is) and\n",[349,1095,1096],{},"Schema\\DescribesSchema",": a rule object implementing it adds its JSON Schema keywords to the type of the field it is\ndeclared on (",[349,1099,1100],{},"TypeDefinition::$jsonSchema","), whatever the descriptor; non JSON-ready keywords throw\n",[349,1103,1104],{},"DefinitionException::invalidJsonSchema()",[346,1106,1107,1108,1111,1112,1114,1115,1118,1119,1122,1123,1126,1127,410,1130,410,1133,328],{},"Conditions on every descriptor: ",[349,1109,1110],{},"when(Closure $condition)"," (called ",[349,1113,968],{}," after normalization) and\n",[349,1116,1117],{},"whenHas(?string $key)"," (a ",[349,1120,1121],{},"Schema\\Presence",", checked before the source; ",[349,1124,1125],{},"DefinitionException::invalidPresenceKey()",");\n",[349,1128,1129],{},"isConditional()",[349,1131,1132],{},"conditions()",[349,1134,1135],{},"presences()",[346,1137,1138,1139,1142,1143,1146,1147,1150,1151,437,1154,1157,1158,1161,1162,683,1165,1168,1169,1172],{},"Lifetime of a field: ",[349,1140,1141],{},"Descriptor::since(Revision, $default)"," (from the revision included; a default for older\nclients, ",[349,1144,1145],{},"Support\\Undefined"," when none) and ",[349,1148,1149],{},"until(Revision)"," (up to the revision included), read as\n",[349,1152,1153],{},"Definition\\Lifetime",[349,1155,1156],{},"covers(Revision)","); a ",[349,1159,1160],{},"since"," newer than the ",[349,1163,1164],{},"until",[349,1166,1167],{},"DefinitionException::invertedLifetime()","; a bound set twice keeps the last call and is recorded\n(",[349,1170,1171],{},"Descriptor::repeatedBounds()",").",[346,1174,1175,1176,361,1179,1182,1183,1186,1187,583,1190,1193],{},"Groups: ",[349,1177,1178],{},"Schema::since(Revision, array $fields, $default)",[349,1180,1181],{},"Schema::until(Revision, array $fields)"," return the\narray with each member bounded, to spread with its string keys (in a declaration or in ",[349,1184,1185],{},"Schema::object()","); a\nmember's own narrower bound and own default win, a wider one throws ",[349,1188,1189],{},"DefinitionException::sinceOlderThanGroup()",[349,1191,1192],{},"untilNewerThanGroup()","; a group never records a repeated bound.",[346,1195,1196,1197,437,1200,410,1203,1206,1207,1210,1211,410,1214,501,1217,1220,1221,1224,1225,1228,1229,410,1232,1235,1236,410,1239,1242,1243,1246,1247,1250,1251,1254],{},"Conversions: ",[349,1198,1199],{},"Definition\\Direction",[349,1201,1202],{},"Down",[349,1204,1205],{},"Up","), the ",[349,1208,1209],{},"Conversion\\Converter"," strategy (",[349,1212,1213],{},"convert()",[349,1215,1216],{},"lossless()",[349,1218,1219],{},"extraRules()",") and the ",[349,1222,1223],{},"Conversion\\Converters"," registry keyed by ",[349,1226,1227],{},"(from Kind, to Kind, Direction)","\n(",[349,1230,1231],{},"builtIn()",[349,1233,1234],{},"register()"," with a factory receiving both types, ",[349,1237,1238],{},"find()",[349,1240,1241],{},"key()","), with the built-ins in both directions (",[349,1244,1245],{},"Conversion\\BuiltIn\\*",": int ↔ float \u002F string \u002F bool, float → string \u002F int, bool → string \u002F\nint, string → bool, enum ↔ backed value); ",[349,1248,1249],{},"Exceptions\\ConversionException::invalidEnumValue()",".\n",[349,1252,1253],{},"Converter::convert($value, $subject = null)",": only a closure reads the subject.",[346,1256,1257,1258,1261,1262,1264,1265,1118,1268,418,1270,1272,1273,1275,1276,501,1279,410,1282,1285,1286,1289,1290,1293,1294,328],{},"Explicit conversions: the ",[349,1259,1260],{},"Conversion\\ExplicitConverter"," marker (never warned ",[349,1263,425],{},"),\n",[349,1266,1267],{},"Conversion\\ClosureConverter",[349,1269,417],{},[349,1271,421],{}," closure ",[349,1274,968],{},") and ",[349,1277,1278],{},"Conversion\\Cast::round()",[349,1280,1281],{},"floor()",[349,1283,1284],{},"ceil()"," (float → int, a ",[349,1287,1288],{},"Conversion\\Rounding","). A float → int conversion (",[349,1291,1292],{},"FloatToInt"," included) of\na float outside the int range throws ",[349,1295,1296],{},"ConversionException::outOfIntRange()",[346,1298,1299,1300,437,1303,1306,1307,410,1310,410,1313,1316,1317,437,1320,1126,1323,437,1326,1329,1330,1333,1334,479,1337,410,1340,501,1343,410,1346,328],{},"Custom types: ",[349,1301,1302],{},"Schema\\TypeRegistry",[349,1304,1305],{},"register($name, MoneySchema::class)"," at boot, ",[349,1308,1309],{},"has()",[349,1311,1312],{},"make()",[349,1314,1315],{},"flush()",";\nstatic like Laravel's macros) served by ",[349,1318,1319],{},"Schema::__callStatic()",[349,1321,1322],{},"Schema::money('total')",[349,1324,1325],{},"TypeDefinition::custom($name, $fragment)",[349,1327,1328],{},"Kind::Custom",", the name the type declares, its JSON Schema fragment in\n",[349,1331,1332],{},"fragment",", apart from the rule keywords of ",[349,1335,1336],{},"jsonSchema",[349,1338,1339],{},"DefinitionException::unknownType()",[349,1341,1342],{},"invalidTypeName()",[349,1344,1345],{},"invalidCustomType()",[349,1347,1348],{},"invalidTypeFragment()",[346,1350,1351,1352,1355,1356,1359,1360,1363,1364,1367,1368,1172],{},"PHPStan extension (",[349,1353,1354],{},"extension.neon",", registered for ",[349,1357,1358],{},"phpstan\u002Fextension-installer","): the custom types mapped in\n",[349,1361,1362],{},"apiRevisions.types"," are static methods of ",[349,1365,1366],{},"Schema"," typed with their class and their constructor's parameters\n(",[349,1369,1370],{},"PHPStan\\CustomTypesExtension",[346,1372,1373,1374,437,1377,410,1380,410,1383,410,1386,501,1389,410,1392,410,1395,1398,1399,410,1402,1405,1406,1409],{},"Conversion chains: ",[349,1375,1376],{},"Conversion\\ConversionChain",[349,1378,1379],{},"empty()",[349,1381,1382],{},"withStep()",[349,1384,1385],{},"bind()",[349,1387,1388],{},"apply($value, $subject)",[349,1390,1391],{},"stepOf()",[349,1393,1394],{},"missing()",[349,1396,1397],{},"isEmpty()","), the steps of one field at one revision in one direction, planned from types and\nreferences only (",[349,1400,1401],{},"Conversion\\ConversionStep",[349,1403,1404],{},"Conversion\\StepKind",": registered, explicit, missing) so it\nserializes; two types holding the same values add no step; ",[349,1407,1408],{},"ConversionException::missing()"," when a step without\nconverter is applied.",[346,1411,1412,1413,1416,1417,1420,1421,410,1424,1427,1428,1431,1432,1435,1436,1439,1440,1443,1444,1446,1447,1449],{},"Shapes: ",[349,1414,1415],{},"Compilation\\ShapeSelector::at($head, $revision, $direction, $converters)",", the one function giving the\n",[349,1418,1419],{},"Compilation\\Shape"," of a revision (",[349,1422,1423],{},"names()",[349,1425,1426],{},"field()",", the fields added later for a request, the name\n",[349,1429,1430],{},"Compilation\\Collision","s): per visible field a ",[349,1433,1434],{},"Compilation\\FieldDefinition"," (name, type, nullable, required,\nsometimes, conditional, default and lifetime at the revision, its ",[349,1437,1438],{},"Compilation\\FieldVersion"," at every applicable\n",[349,1441,1442],{},"was()",", its unbound conversion chain in the direction of the shape, the items of a list, the children of an object as\na nested ",[349,1445,569],{},"), every omitted ",[349,1448,1442],{}," argument inherited from the next newer shape. Closure-free and serializable.",[346,1451,1452,1453,1455,1456,1459,1460,1462,1463,1466,1467,437,1470,410,1473,501,1476,1479,1480,385,1483,1486,1487,1490,1491,1494,1495,410,1498,479,1501,501,1504,410,1507,1510,1511,1514,1515,1517],{},"Compilation: ",[349,1454,772],{}," (static ",[349,1457,1458],{},"declarationKinds()"," and the ",[349,1461,368],{}," bridge\n",[349,1464,1465],{},"describeRevisioned(DeclarationKind, $subject)",": the probe at compilation, the value of a nested resource at\nprojection), ",[349,1468,1469],{},"Schema\\DeclarationKind",[349,1471,1472],{},"Response",[349,1474,1475],{},"RequestBody",[349,1477,1478],{},"RequestQuery","; ",[349,1481,1482],{},"direction()",[349,1484,1485],{},"Compilation\\Probe"," (throws ",[349,1488,1489],{},"DefinitionException::subjectReadAtCompilation()"," on any\naccess), ",[349,1492,1493],{},"Compilation\\Compiler::compile($class, $kind, $revision)"," (configured descriptors, the shape of the\nrevision naming its class and kind: ",[349,1496,1497],{},"Shape::$class",[349,1499,1500],{},"Shape::$kind",[349,1502,1503],{},"DefinitionException::notRevisioned()",[349,1505,1506],{},"undeclaredKind()",[349,1508,1509],{},"invalidDeclaration()",". ",[349,1512,1513],{},"Descriptor::configured()"," configures a descriptor and the schemas of its\n",[349,1516,1442],{},"; composites configure their parts through it.",[346,1519,1520,1521,1524,1525,1527,1528,1531,1532,1535,1536,1538,1539,1541,1542,1544,1545,1548,1549,1552,1553,1556,1557,385,1560,410,1562,1565,1566,1228,1569,410,1572,410,1575,1479,1578,410,1581,410,1584,1586,1587,328],{},"Projection: ",[349,1522,1523],{},"Projection\\Projector::project(Shape, $descriptors, $subject)"," (built with the ",[349,1526,264],{},", the\n",[349,1529,1530],{},"Converters"," and a ",[349,1533,1534],{},"Projection\\SourceReader",") renders the visible fields of a shape under their name at its\nrevision: presence conditions, source (a renamed field reads its head key), normalization, ",[349,1537,355],{}," (kept on ",[349,1540,526],{},"),\ndown chain bound to the fresh descriptors, serialization by the type in force at the revision; ",[349,1543,388],{}," skips\nnormalization and conversions. ",[349,1546,1547],{},"SourceReader::read()"," (keys and dotted paths on arrays, ",[349,1550,1551],{},"ArrayAccess",", public\nproperties, ",[349,1554,1555],{},"__get()"," without ",[349,1558,1559],{},"isset()",[349,1561,1309],{},[349,1563,1564],{},"peek()"," (no side effect). ",[349,1567,1568],{},"Exceptions\\ValueException",[349,1570,1571],{},"refused()",[349,1573,1574],{},"nullNotAllowed()",[349,1576,1577],{},"unconvertible()",[349,1579,1580],{},"class",[349,1582,1583],{},"field",[349,1585,626],{},"; never the value);\n",[349,1588,1589],{},"DefinitionException::missingDescriptor()",[346,1591,1592,1593,1596,1597,1600,1601,1603,1604,1607,1608,1610,1611,1510,1614,361,1617,1620,1621,1624,1625,1628],{},"Upgrade: ",[349,1594,1595],{},"Upgrade\\Upgrader::upgrade($shape, $descriptors, $input, ?$hook)"," takes a validated input of a request\nshape's revision to the head, step by step: renames and ",[349,1598,1599],{},"up"," conversions of each ",[349,1602,1442],{}," read from a snapshot of the\nstep (values normalized to the type of the step first), the ",[349,1605,1606],{},"Upgrade\\UpgradesInput"," hook, the defaults of the fields\nadded in the newer revision (never over an explicit ",[349,1609,388],{},"), the fields retired dropped; converted and defaulted\nvalues serialized back to raw values, the result in the head order; a response shape throws\n",[349,1612,1613],{},"DefinitionException::notAnUpShape()",[349,1615,1616],{},"FieldVersion::$schemaChange",[349,1618,1619],{},"FieldDefinition::nameAt()"," give the\ndescriptor in force and the name at a revision. Objects, lists and nested resources are upgraded too, in the same\nstep as their parent; the ",[349,1622,1623],{},"Upgrader"," takes an optional ",[349,1626,1627],{},"Shapes"," for the nested resources.",[346,1630,1631,1632,1635,1636,1639,1640,437,1643,1646,1647,1649,1650,1652,1653,1656,1657,1660,1661,437,1664,410,1667,1669,1670,1673],{},"Laravel: ",[349,1633,1634],{},"config\u002Frevisions.php"," (publish with ",[349,1637,1638],{},"--tag=revisions-config","), validated lazily by\n",[349,1641,1642],{},"Laravel\\RevisionsConfig",[349,1644,1645],{},"Exceptions\\ConfigurationException","); the service provider binds the core\n",[349,1648,264],{},", one ",[349,1651,1627],{},", the ",[349,1654,1655],{},"RevisionScope"," of each request (",[349,1658,1659],{},"scoped",", its base the configured fixed default\noutside a request) and the ",[349,1662,1663],{},"ValueErrorHandler",[349,1665,1666],{},"strict_values",[349,1668,388],{}," following ",[349,1671,1672],{},"app.debug","; lenient errors\nreported once per class and field and request).",[346,1675,1676,1677,1680,1681,385,1684,1228,1687,410,1690,385,1693,437,1696,410,1698,1275,1700,437,1703,410,1706,1708,1709,1712,1713,1118,1716,1718,1719,1722,1723,1725,1726,1728,1729,1732,1733,1736,1737,1739,1740,1479,1743,1746],{},"Resolvers: the ",[349,1678,1679],{},"Laravel\\Http\\RevisionResolver"," contract (",[349,1682,1683],{},"resolve(Request): ?Revision",[349,1685,1686],{},"HeaderResolver",[349,1688,1689],{},"name",[349,1691,1692],{},"Api-Revision",[349,1694,1695],{},"QueryResolver",[349,1697,1689],{},[349,1699,626],{},[349,1701,1702],{},"PathResolver",[349,1704,1705],{},"parameter",[349,1707,626],{},") in\n",[349,1710,1711],{},"Laravel\\Http\\Resolvers",", chained by ",[349,1714,1715],{},"ResolverChain",[349,1717,1659],{}," binding built from ",[349,1720,1721],{},"revisions.resolvers",", each\nresolver made by the container with its options as named arguments; the first revision wins, then ",[349,1724,644],{},": a fixed\nrevision, or a resolver class whose ",[349,1727,388],{}," gives the head). A value naming no revision throws\n",[349,1730,1731],{},"Exceptions\\UnknownRevisionException"," (the value and the accepted ones). ",[349,1734,1735],{},"RevisionsConfig"," refuses a resolver or a\nclass ",[349,1738,644],{}," not implementing ",[349,1741,1742],{},"RevisionResolver",[349,1744,1745],{},"resolvers"," defaults to the header resolver.",[346,1748,1749,1750,1753,1754,1756,1757,1759,1760,410,1763,1766,1767,1770,1771,1774,1775,1778,1779,1510,1782,1785,1786,1789,1790,1793,1794,1796,1797,1800,1801,328],{},"Middleware ",[349,1751,1752],{},"Laravel\\Http\\ResolveRevision"," (alias ",[349,1755,626],{},"): resolves the revision of the request through the\n",[349,1758,1715],{},", makes it the request's current revision, and adds the ",[349,1761,1762],{},"response_header",[349,1764,1765],{},"Vary"," on the revision\nheaders, ",[349,1768,1769],{},"Deprecation"," (RFC 9745) and ",[349,1772,1773],{},"Sunset"," (RFC 8594) from the revision's ",[349,1776,1777],{},"#[Meta]","; an unknown revision is\nanswered 400 with ",[349,1780,1781],{},"{message, revision, accepted}",[349,1783,1784],{},"UnknownRevisionException"," cuts the value it echoes to 64\ncharacters. A resolver reading request headers implements the optional ",[349,1787,1788],{},"Laravel\\Http\\VariesOn"," contract\n(",[349,1791,1792],{},"headers()",", implemented by ",[349,1795,1686],{},"): ",[349,1798,1799],{},"ResolverChain::headers()"," collects them for ",[349,1802,1765],{},[346,1804,1805,1806,437,1809,1812,1813,1816,1817,1819,1820,1822,1823,1826,1827,1829,1830,410,1833,501,1836,1510,1839,1841,1842,1845,1846,1849,1850,1172],{},"Path mode: the route macro ",[349,1807,1808],{},"Route::revisioned(fn (Router $router) => …)",[349,1810,1811],{},"Laravel\\Routing\\RevisionedRoutes",")\nprefixes its routes with ",[349,1814,1815],{},"{revision}"," (the ",[349,1818,1705],{}," of the configured ",[349,1821,1702],{},", required:\n",[349,1824,1825],{},"ConfigurationException::pathModeWithoutResolver()","), constrained to the revision values, under the ",[349,1828,626],{},"\nmiddleware; the middleware forgets the parameter and sets it as a URL default, so controllers never receive it and\ngenerated URLs keep the revision. ",[349,1831,1832],{},"PathResolver::parameter()",[349,1834,1835],{},"ResolverChain::parameters()",[349,1837,1838],{},"RevisionsConfig::pathParameter()",[349,1840,1354],{}," declares the macro to PHPStan (",[349,1843,1844],{},"PHPStan\\RevisionedRouteExtension",";\n",[349,1847,1848],{},"PHPStan\\CustomTypeMethod"," becomes ",[349,1851,1852],{},"PHPStan\\DeclaredMethod",[346,1854,1855,1858,1859,515,1862,1864,1865,1868,1869,1479,1871,501,1874,1877,1878,1880,1881,1884,1885,1888,1889,501,1891,1894,1895,1898,1899,1902,1903,1906,1907,1172],{},[349,1856,1857],{},"Laravel\\Resources\\RevisionedResource",", the trait of a revisioned ",[349,1860,1861],{},"JsonResource",[349,1863,518],{}," returns descriptors,\n",[349,1866,1867],{},"resolve()"," projects them on the model at the current revision, in the order of ",[349,1870,518],{},[349,1872,1873],{},"with()",[349,1875,1876],{},"additional()",", wrapping, collections and pagination unchanged; implements the ",[349,1879,722],{}," bridge (a response).\nA plain value is rendered as it is (a nullable ",[349,1882,1883],{},"any"," in the shape: ",[349,1886,1887],{},"Schema\\EagerSchema","); a native ",[349,1890,355],{},[349,1892,1893],{},"whenLoaded()"," or ",[349,1896,1897],{},"mergeWhen()"," is honoured at run time and kept out of the shape; ",[349,1900,1901],{},"Arrayable"," values are rendered as\narrays; lenient value errors are reported. The ",[349,1904,1905],{},"Projector"," is bound in the container (",[349,1908,1659],{},[346,1910,1911,1914,1915,1918],{},[349,1912,1913],{},"Descriptor::whenLoaded('relation')"," (dotted for a nested relation, ",[349,1916,1917],{},"Schema\\Presence::loaded()","): the field is kept\nonly when the relation is loaded, checked before the source; on a subject without relations, the key is present.",[346,1920,1921,1923,1924,410,1927,410,1929,410,1931,1934,1935,1938,1939,1942,1943,1946],{},[349,1922,1534],{}," is now an interface (",[349,1925,1926],{},"read()",[349,1928,1309],{},[349,1930,1564],{},[349,1932,1933],{},"loaded()","), implemented by\n",[349,1936,1937],{},"Projection\\PlainSourceReader"," (the former class) and decorated for Eloquent by\n",[349,1940,1941],{},"Laravel\\Resources\\EloquentSourceReader"," (attributes present in ",[349,1944,1945],{},"getAttributes()",", relations loaded, never a lazy\nload).",[346,1948,1949,1950,1953,1954,1957,1958,418,1961,418,1964,1967,1968,1971,1972,583,1975,410,1978,410,1981,1984,1985,410,1988,418,1991,1994,1995,410,1997,1999,2000,2002,2003,1510,2006,501,2009,2012],{},"Validation rules of a request shape: ",[349,1951,1952],{},"Laravel\\Validation\\RuleCompiler::compile($shape, $descriptors)"," (bound in the\ncontainer) gives the Laravel rules under the names of the client's revision (dotted for children and nested\nresources, ",[349,1955,1956],{},".*"," for items): ",[349,1959,1960],{},"sometimes",[349,1962,1963],{},"required",[349,1965,1966],{},"nullable"," as declared, the rules of the type (one\n",[349,1969,1970],{},"Laravel\\Validation\\RuleMapper"," per kind, replaceable: string length, pattern and known formats, ",[349,1973,1974],{},"integer",[349,1976,1977],{},"numeric",[349,1979,1980],{},"boolean",[349,1982,1983],{},"date_format:",", Laravel's ",[349,1986,1987],{},"Enum",[349,1989,1990],{},"list",[349,1992,1993],{},"array","), those of the first up conversion\n(",[349,1996,1977],{},[349,1998,1974],{},", the values of an enum), then the descriptor's ",[349,2001,993],{}," as given. A required child of a parent\nthe client may leave out gets ",[349,2004,2005],{},"required_unless:\u003Cparent>,null",[349,2007,2008],{},"DefinitionException::rulesOfAResponse()",[349,2010,2011],{},"unknownKind()"," (a mapper keyed by no kind).",[346,2014,2015,1858,2018,2021,2022,2025,2026,1652,2029,2032,2033,2035,2036,418,2039,2042,2043,418,2046,2049,2050,2053,2054,2056],{},[349,2016,2017],{},"Laravel\\Requests\\RevisionedRequest",[349,2019,2020],{},"FormRequest",": the head body in ",[349,2023,2024],{},"body()",", the head\nquery parameters in ",[349,2027,2028],{},"queryParameters()",[349,2030,2031],{},"protected upgrade()"," hook on the body; ",[349,2034,993],{}," validates the input\nin the client's revision under its names, then the input is upgraded to the head, which ",[349,2037,2038],{},"validated()",[349,2040,2041],{},"safe()","\nreturn (",[349,2044,2045],{},"input()",[349,2047,2048],{},"all()"," keep the input as sent). A name declared in both the body and the query at a revision\nthrows ",[349,2051,2052],{},"DefinitionException::declaredTwice()",". The ",[349,2055,1623],{}," is bound in the container (singleton).",[346,2058,2059,2060,437,2063,410,2066,2069,2070,2073,2074,2077,2078,2080,2081,2084,2085,2088,2089,2091,2092,2095],{},"A value the upgrade rejects is a validation error on the client's key: the upgrader throws\n",[349,2061,2062],{},"Exceptions\\InvalidInputException",[349,2064,2065],{},"key",[349,2067,2068],{},"reason",") for a ",[349,2071,2072],{},"ConversionException"," or a ",[349,2075,2076],{},"ValueException"," (instead of\nthe exception itself); an ",[349,2079,421],{}," closure rejects an input with ",[349,2082,2083],{},"ConversionException::invalid($message)",", its message\nbeing the error; any other rejection gets Laravel's ",[349,2086,2087],{},"validation.in"," message. ",[349,2090,1408],{}," stays\na declaration error (",[349,2093,2094],{},"ConversionException::$declarationError","), as do the other exceptions of a closure .",[346,2097,2098,2099,2102,2103,2106,2107,2110,2111,1652,2113,2116,2117,2120,2121,2123,2124,2126],{},"Queued jobs outside HTTP: a job implementing the marker interface ",[349,2100,2101],{},"Laravel\\Queue\\CapturesRevision"," runs in the\nrevision current when it was dispatched (",[349,2104,2105],{},"handle()",", its middleware and ",[349,2108,2109],{},"failed()"," inside ",[349,2112,905],{},[349,2114,2115],{},"sync"," queue\nincluded); the payload stores the backed value under ",[349,2118,2119],{},"ark4ne:revision",". A revision the enum no longer knows fails the\nattempt with ",[349,2122,1784],{},", and ",[349,2125,2109],{}," runs in the base revision. Other jobs run in the base\nrevision.",[346,2128,2129,2130,2133,2134,2137,2138,2140,2141,2144,2145,2148,2149,437,2152,479,2155,2133,2158,2161,2162,2165,2166,410,2169,410,2172,2175,2176,2179,2180,2182,2183,2186,2187,2190,2191,2193,2194,328],{},"Compiled shapes: ",[349,2131,2132],{},"php artisan revision:cache"," (run by ",[349,2135,2136],{},"php artisan optimize",") compiles every declaration kind of every\nclass implementing ",[349,2139,722],{}," found under ",[349,2142,2143],{},"discovery.paths"," (plus ",[349,2146,2147],{},"discovery.classes",") at every revision, and\nwrites ",[349,2150,2151],{},"cache_path",[349,2153,2154],{},"bootstrap\u002Fcache\u002Frevisions.php",[349,2156,2157],{},"revision:clear",[349,2159,2160],{},"optimize:clear",") removes it.\n",[349,2163,2164],{},"Compilation\\CompiledShapes"," reads and writes the file (",[349,2167,2168],{},"load()",[349,2170,2171],{},"write()",[349,2173,2174],{},"get()","; one serialized shape per\n",[349,2177,2178],{},"class@kind@revision",", unserialized on first use), ",[349,2181,1627],{}," takes it as its second argument and reads it before\ncompiling; ",[349,2184,2185],{},"Laravel\\Discovery\\PathClassFinder"," finds the classes; ",[349,2188,2189],{},"Exceptions\\CacheException",". Changing the date\nformats, a declaration or a custom type requires ",[349,2192,748],{}," again, as for ",[349,2195,2196],{},"route:cache",[346,2198,2199,2200,437,2203,2206,2207,410,2210,2213,2214,2216,2217,2220,2221,1894,2223,2225,2226,2228,2229,2231],{},"Benchmark gate: ",[349,2201,2202],{},"composer benchmark",[349,2204,2205],{},"bin\u002Fbenchmark.php",", reference ",[349,2208,2209],{},"bin\u002Fbenchmark\u002Freference.json",[349,2211,2212],{},"--update",")\ncompares the projection at the head and at the oldest revision with a plain ",[349,2215,1861],{}," (time and memory ratios,\n10 % tolerance); run in CI. A projection costs about ×19 the time of the plain resource: ",[349,2218,2219],{},"TypeRegistry::converters()","\nwithout argument is built once until the next ",[349,2222,1234],{},[349,2224,1315],{},", the projector configures only the\nserializer's own defaults (",[349,2227,1064],{},"), and a ",[349,2230,1442],{}," inserts its change without sorting the history.",[346,2233,2234,2235,587,2238,2241,2242,2245,2246,2248,2249,2251,2252,2254,2255,437,2258,2260,2261,2263],{},"Value errors: ",[349,2236,2237],{},"Projection\\ValueErrorHandler",[349,2239,2240],{},"StrictValues"," (throws) and ",[349,2243,2244],{},"LenientValues"," (an optional reporter;\nrenders the cast of a refused value as it is, ",[349,2247,388],{}," for a failed conversion or a non-nullable ",[349,2250,388],{},"), given to\nthe ",[349,2253,1905],{}," or chosen from ",[349,2256,2257],{},"Configuration::$strictValues",[349,2259,526],{}," by default); a non-nullable field or item\nresolving ",[349,2262,388],{}," is a value error.",[346,2265,2266,2267,2269,2270,1624,2272,2274,2275,418,2277,2279,2280,418,2283,2286,2287,2290,2291,328],{},"Nested projection: objects project their head children on their value (or the parent's subject), lists each item\n(an item whose condition fails is dropped), a ",[349,2268,762],{}," the shape of its class at the\nsame revision with its descriptors built on the value (",[349,2271,1905],{},[349,2273,1627],{},"); the composite's\n",[349,2276,355],{},[349,2278,417],{}," receive the projected children. ",[349,2281,2282],{},"FieldDefinition::$children",[349,2284,2285],{},"$items"," are those of the head\ncomposite at ",[349,2288,2289],{},"FieldDefinition::$headAt",", the revision after its newest ",[349,2292,703],{},[346,2294,2295,2296,2299,2300,2303,2304,2307,2308,2311,2312,328],{},"Shapes repository: ",[349,2297,2298],{},"Compilation\\Shapes"," (built with a ",[349,2301,2302],{},"Compiler",", the default one by default), ",[349,2305,2306],{},"for($class, $kind, $revision)"," compiling each ",[349,2309,2310],{},"(class, declaration kind, revision)"," once, ",[349,2313,1315],{},[346,2315,2316,2317,437,2320,410,2323,1845,2326,2328,2329,2332,2333,410,2336,2339,2340,2342],{},"Nested resources: ",[349,2318,2319],{},"Schema::resource(class-string\u003CRevisioned>, $source)",[349,2321,2322],{},"Schema\\ResourceSchema",[349,2324,2325],{},"class()",[349,2327,1503],{}," for another class): an ",[349,2330,2331],{},"Object"," kind referencing the class\n(",[349,2334,2335],{},"TypeDefinition::$resource",[349,2337,2338],{},"withResource()","), never a copy of its shape, so cycles compile. The nested shape is\nthe class's declaration of the same kind at the same revision: the compiler refuses a nested class\nthat does not declare it (",[349,2341,1506],{},"). Two types referencing different classes hold other values:\nchanging the referenced class needs a converter (a missing step otherwise).",[346,2344,2345,2346,2349,2350,479,2353,2355,2356,1510,2359,2362,2363,2365,2366,479,2369,2372,2373,2376],{},"Conversions of custom types: a custom type implementing ",[349,2347,2348],{},"Schema\\DeclaresConversions"," registers its conversions\n(",[349,2351,2352],{},"conversions(Converters): Converters",[349,2354,2219],{}," gives the built-in registry with those of every\nregistered type, to give to ",[349,2357,2358],{},"ShapeSelector::at()",[349,2360,2361],{},"Converters::register()"," takes a custom type's name as a\nside (",[349,2364,1328],{}," and an empty name throw ",[349,2367,2368],{},"DefinitionException::invalidConversionSide()",[349,2370,2371],{},"Converters::keyOf()"," keys a custom type by its name (",[349,2374,2375],{},"custom(money)>float:down","), so two custom types never\noverwrite each other.",[346,2378,2379,2380,437,2383,2386,2387,2390,2391,2393,2394,2397,2398,2401,2402,2404,2405,2408],{},"Defaults: ",[349,2381,2382],{},"Configuration::$missingDefault",[349,2384,2385],{},"Configuration\\MissingDefault::Error",", the default, or ",[349,2388,2389],{},"Null","); with\n",[349,2392,2389],{},", a ",[349,2395,2396],{},"required()->since(R)"," field declared without ",[349,2399,2400],{},"default:"," gets ",[349,2403,388],{}," as default in the shapes\n(",[349,2406,2407],{},"ShapeSelector::at(..., configuration:)","), an optional one keeps none.",[346,2410,2411,2412,437,2415,418,2417,2419,2420,2423,2424,2427,2428,2431,2432,2435,2436,2439,2440,1118,2443,2445,2446,410,2449,1118,2452,2454,2455,1118,2458,2461],{},"History: ",[349,2413,2414],{},"Descriptor::was(Revision, name:, schema:, down:, up:)",[349,2416,417],{},[349,2418,421],{}," a closure, kept as a\n",[349,2421,2422],{},"ClosureConverter",", or a ",[349,2425,2426],{},"Cast",") adds a ",[349,2429,2430],{},"Schema\\Change"," to the field's\n",[349,2433,2434],{},"Schema\\History"," (its lifetime and its changes, newest first whatever the call order; ",[349,2437,2438],{},"Descriptor::history()",");\nno effect on the head type. ",[349,2441,2442],{},"DefinitionException::invalidHistory()",[349,2444,1442],{}," on the head, twice on a revision),\n",[349,2447,2448],{},"emptyHistoryName()",[349,2450,2451],{},"emptyChange()",[349,2453,1442],{}," changing nothing) and ",[349,2456,2457],{},"sourceInHistory()",[349,2459,2460],{},"schema:",", its items\nor children with a source, a lifetime, a history, a default or a condition).",[346,2463,2464,437,2467,410,2470,2473,2474,328],{},[349,2465,2466],{},"Configuration\\Configuration",[349,2468,2469],{},"dateFormat",[349,2471,2472],{},"dateTimeFormat","), given to descriptors by ",[349,2475,2476],{},"Descriptor::configure()",[346,2478,2479,361,2482,2485],{},[349,2480,2481],{},"Definition\\TypeDefinition",[349,2483,2484],{},"Definition\\Kind",", the type of a field as read by the tools.",[346,2487,2488,515,2491,410,2494,410,2497,410,2499,410,2501,410,2503,410,2505,328],{},[349,2489,2490],{},"Revisions\\RevisionOrder",[349,2492,2493],{},"index()",[349,2495,2496],{},"compare()",[349,2498,838],{},[349,2500,841],{},[349,2502,844],{},[349,2504,847],{},[349,2506,2507],{},"between()",[346,2509,2510,2513,2514,1228,2517,2520,2521,2524,2525,2528,2529,2531],{},[349,2511,2512],{},"Exceptions\\RevisionsException",", marker of the package exceptions, and ",[349,2515,2516],{},"Exceptions\\DefinitionException",[349,2518,2519],{},"mixedRevisions()"," when revisions of two enums are compared, ",[349,2522,2523],{},"foreignRevision()"," when a revision of another enum\nis used or current, ",[349,2526,2527],{},"invalidOrder()"," when ",[349,2530,851],{}," misses a case, lists one twice, lists a foreign case, is not a\nlist or is empty).",[346,2533,2534,2535,437,2538,410,2540,410,2543,410,2545,410,2547,2549,2550,410,2553,385,2556,437,2559,410,2562,1275,2565,2568,2569,410,2572,410,2575,2578,2579,2581,2582,2585,2586,418,2589,1264,2592,2595,2596,2598,2599,2602,2603,1479,2605,2608,2609,2611],{},"Check foundations: ",[349,2536,2537],{},"Support\\Diagnostic",[349,2539,349],{},[349,2541,2542],{},"severity",[349,2544,1580],{},[349,2546,1583],{},[349,2548,626],{}," as its backed value,\n",[349,2551,2552],{},"message",[349,2554,2555],{},"isError()",[349,2557,2558],{},"Support\\Severity",[349,2560,2561],{},"Error",[349,2563,2564],{},"Warning",[349,2566,2567],{},"Support\\Diagnostics"," (collected in order,\n",[349,2570,2571],{},"errors()",[349,2573,2574],{},"warnings()",[349,2576,2577],{},"hasErrors()",", countable and iterable); ",[349,2580,665],{}," (one rule, run once on the revision\nenum then once per declaring class), ",[349,2583,2584],{},"Checking\\CheckContext"," (the target, its shapes, ",[349,2587,2588],{},"error()",[349,2590,2591],{},"warning()",[349,2593,2594],{},"Checking\\Checker"," (runs the checks with a fresh ",[349,2597,1627],{}," per run) and the ",[349,2600,2601],{},"Checking\\ClassFinder"," contract,\nimplemented by ",[349,2604,2185],{},[349,2606,2607],{},"DefinitionException::noShapeForRevisions()"," when a check asks a\nshape of the enum, ",[349,2610,2523],{}," for a diagnostic on a revision of another enum.",[346,2613,2614,2615,2618,2619,410,2622,501,2625,2628,2629,410,2632,410,2635,410,2638,2641,2642,2645,2646,2649,2650,385,2653,1479,2656,2659,2660,2663,2664,2667,2668,2671,2672,437,2674,515,2677,410,2680,501,2683,410,2686,410,2689,2692,2693,2696,2697,2699,2700,2703,2704,1479,2707,410,2710,410,2713,410,2716,1250,2719,2722],{},"Check rules: ",[349,2616,2617],{},"Checking\\Checker::builtIn()"," — ",[349,2620,2621],{},"Checks\\OrderMissingCase",[349,2623,2624],{},"OrderDuplicateCase",[349,2626,2627],{},"BoundRepeated"," (warning), ",[349,2630,2631],{},"HistoryBeforeSince",[349,2633,2634],{},"HistoryAfterUntil",[349,2636,2637],{},"ConversionMissing",[349,2639,2640],{},"ConversionLossy","\n(warning), ",[349,2643,2644],{},"NameCollision"," (also a name in both the body and the query of a request), ",[349,2647,2648],{},"RequiredSinceWithoutDefault","\n(none under ",[349,2651,2652],{},"missing_default: null",[349,2654,2655],{},"EagerValue",[349,2657,2658],{},"Laravel\\Checking\\NativeCondition"," (warning). A\n",[349,2661,2662],{},"DefinitionException"," of a descriptor in a ",[349,2665,2666],{},"RevisionedResource::toArray()"," is no longer wrapped in ",[349,2669,2670],{},"failedDescribing()",". Before its rules,\nthe checker builds each class (descriptors, shapes at every revision): anything thrown is one error under the code\nof its ",[349,2673,2662],{},[349,2675,2676],{},"DefinitionException::$checkCode",[349,2678,2679],{},"lifetime-inverted",[349,2681,2682],{},"since-older-than-group",[349,2684,2685],{},"until-newer-than-group",[349,2687,2688],{},"history-unordered",[349,2690,2691],{},"unknown-resource","), else ",[349,2694,2695],{},"definition-error",", and\nthe check goes on; an invalid ",[349,2698,851],{}," stops it after the enum. ",[349,2701,2702],{},"Compiler::describe()"," (the configured\nhead descriptors) and ",[349,2705,2706],{},"Compiler::converters()",[349,2708,2709],{},"CheckContext::order()",[349,2711,2712],{},"kinds()",[349,2714,2715],{},"descriptors()",[349,2717,2718],{},"converters()",[349,2720,2721],{},"schema-override"," comes with the export.",[346,2724,2725,437,2728,2731,2732,2735,2736,2739,2740,418,2742,2744,2745,2748,2749,2752,2753,437,2755,2758,2759,1275,2761,1510,2763,328],{},[349,2726,2727],{},"php artisan revision:check",[349,2729,2730],{},"Laravel\\Console\\CheckCommand","): runs ",[349,2733,2734],{},"Checker::builtIn()"," plus ",[349,2737,2738],{},"NativeCondition"," on the\nenum and every class of ",[349,2741,2143],{},[349,2743,2147],{},", with the application's configuration; a table of\ndiagnostics (",[349,2746,2747],{},"--format=json"," for CI tools), fails on an error, warnings alone pass; ",[349,2750,2751],{},"--list"," prints the discovered\nclasses. The container binds ",[349,2754,2601],{},[349,2756,2757],{},"PathClassFinder"," over the discovery, also used by\n",[349,2760,748],{},[349,2762,2594],{},[349,2764,2765],{},"Support\\Diagnostic::toArray()",[346,2767,2768,2771,2772,515,2775,2777],{},[349,2769,2770],{},"Testing\\InteractsWithRevisions"," for an application's ",[349,2773,2774],{},"TestCase",[349,2776,679],{}," fails with every\ndiagnostic when one is an error.",[346,2779,2780,2781,2784,2785,410,2788,410,2791,2794,2795,2798,2799,2802,2803,2806,2807,2809,2810,418,2813,2816,2817,385,2820,2822,2823,2825,2826,2828,2829,2832,2833,2835,2836,2839,2840,1228,2842,2845,2846,2849],{},"JSON Schema export: ",[349,2782,2783],{},"Export\\JsonSchemaExporter"," (draft 2020-12; ",[349,2786,2787],{},"export($class, $kind, $revision)",[349,2789,2790],{},"visit(Shape)",[349,2792,2793],{},"typeKeywords()","), implementing the ",[349,2796,2797],{},"Export\\SchemaVisitor"," contract: one document per\nclass, kind and revision, its revision ",[349,2800,2801],{},"meta()"," in ",[349,2804,2805],{},"$comment","; types and constraints, enum values, nullable (",[349,2808,388],{},"\nin ",[349,2811,2812],{},"type",[349,2814,2815],{},"enum",", or ",[349,2818,2819],{},"anyOf",[349,2821,1963],{}," (a response field unless conditional, a request field ",[349,2824,978],{},"\nwithout ",[349,2827,981],{},"), descriptions, examples, ",[349,2830,2831],{},"deprecated",", custom fragments, dates in their wire format (a\n",[349,2834,372],{}," for a numeric PHP format), the ",[349,2837,2838],{},"DescribesSchema"," keywords last; nested resources in ",[349,2841,711],{},[349,2843,2844],{},"$ref",", cycles included); objects open. ",[349,2847,2848],{},"php artisan revision:export {--revision=} {--class=}"," prints it as JSON.",[346,2851,2852,2853,2855,2856,418,2859,2862,2863,1510,2865,437,2868,2871,2872,2875,2876,2878],{},"A ",[349,2854,947],{}," is exported without its delimiters when its flags are ",[349,2857,2858],{},"u",[349,2860,2861],{},"D"," only, otherwise described in ",[349,2864,2805],{},[349,2866,2867],{},"Definition\\TypeDefinition::$nullable",[349,2869,2870],{},"withNullable()","): the nullability of the items and children of a\ncomposite. The compiled-shapes cache format is now ",[349,2873,2874],{},"2",": run ",[349,2877,2132],{}," again after upgrading.",[346,2880,2881,2882,2884,2885,2888,2889,2891],{},"Check rule ",[349,2883,2721],{}," (warning, ",[349,2886,2887],{},"Checking\\Checks\\SchemaOverride",", in ",[349,2890,2734],{},"): a rule keyword\noverriding a keyword of its field's type.",[346,2893,2894,2895,2898,2899,2902,2903,2906,2907,410,2910,1510,2913,2916,2917,2920,2921,2923,2924,437,2927,501,2930,2933,2934,2937,2938,328],{},"Lock of the published revisions: ",[349,2896,2897],{},"Checking\\Lock"," (one ",[349,2900,2901],{},"\u003Cvalue>.json"," per locked revision\nunder ",[349,2904,2905],{},"lock_path",": the structure of every class and kind, documentation left out, keys sorted, and the revision\nbefore it), ",[349,2908,2909],{},"Checking\\LockedRevision",[349,2911,2912],{},"Exceptions\\LockException",[349,2914,2915],{},"php artisan revision:lock"," writes the revisions\nbut the head that have no lock yet; ",[349,2918,2919],{},"--revision="," (re)locks one, the head included. Check rules ",[349,2922,766],{},"\n(per field, keyword, class or kind; a class or kind added only when it has fields there) and ",[349,2925,2926],{},"lock-order-changed",[349,2928,2929],{},"Checking\\Checks\\LockMismatch",[349,2931,2932],{},"LockOrderChanged","), added by the Laravel binding of the ",[349,2935,2936],{},"Checker"," over the configured ",[349,2939,2905],{},[346,2941,2942,2943,2946,2947,2950,2951,2953,2954,2957,2958,2961,2962,437,2965,2968,2969,2972,2973,2975,2976,1228,2979,2982,2983,2986,2987,2888,2990,2992,2993,2995],{},"Components: ",[349,2944,2945],{},"Schema\\ObjectSchema::component($name)"," names an object, a custom type is one under\nits ",[349,2948,2949],{},"TypeDefinition::custom()"," name; each is defined once in the ",[349,2952,711],{}," of a document (",[349,2955,2956],{},"Export\\Components",") and\nreferenced ",[349,2959,2960],{},"#\u002F$defs\u002F\u003Cname>"," from every use, its body at the revision exported (so its history applies everywhere).\n",[349,2963,2964],{},"Definition\\TypeDefinition::$component",[349,2966,2967],{},"withComponent()","); the compiled-shapes cache format is now ",[349,2970,2971],{},"3"," (run\n",[349,2974,2132],{}," again). Two bodies under one name throw ",[349,2977,2978],{},"DefinitionException::componentConflict()",[349,2980,2981],{},"DefinitionException::$field",") and are reported by the check rule ",[349,2984,2985],{},"component-conflict"," (error,\n",[349,2988,2989],{},"Checking\\Checks\\ComponentConflict",[349,2991,2734],{},"). A custom type is now a ",[349,2994,2844],{}," in the export instead\nof its fragment inline.",[346,2997,2998,2999,437,3002,3005,3006,3009,3010,385,3012,501,3015,3018,3019,3022],{},"Changelog: ",[349,3000,3001],{},"Export\\Changelog",[349,3003,3004],{},"changes($class, $kind, $revision)",": what a revision changes\nagainst the one before it, fields matched by their head key path through object children and list items;\n",[349,3007,3008],{},"markdown($classes, $from, $to)",": newest first, each revision headed by its ",[349,3011,2801],{},[349,3013,3014],{},"Export\\Change",[349,3016,3017],{},"Export\\ChangeKind"," (added, removed, renamed, type changed). ",[349,3020,3021],{},"php artisan revision:changelog {--from=} {--to=}","\nprints it.",[346,3024,3025,3026,410,3028,3031,3032,3035,3036,3039,3040,3043,3044,3047,3048,3051,3052,410,3055,3058,3059,3061,3062,1510,3065,3068,3069,1172],{},"Test helpers: on ",[349,3027,2770],{},[349,3029,3030],{},"withRevision(Revision)"," (a header, the route\nparameter of path mode or the query, as the first resolver of the chain reads it) and\n",[349,3033,3034],{},"assertRendersAtEveryRevision($class, $subject, ?$revisions)"," (a head fixture projected at each revision and validated);\nthe ",[349,3037,3038],{},"TestResponse"," macro ",[349,3041,3042],{},"assertMatchesRevisionSchema($class, ?Revision $revision)"," (registered by the trait's\n",[349,3045,3046],{},"setUpInteractsWithRevisions()","; the revision of the response header by default, the ",[349,3049,3050],{},"data"," of a wrapped body, a\nlist item by item) — ",[349,3053,3054],{},"Testing\\TestResponseMacros",[349,3056,3057],{},"Testing\\RevisionSchema",". They validate against the export with\nclosed objects: ",[349,3060,376],{}," takes ",[349,3063,3064],{},"closed: true",[349,3066,3067],{},"opis\u002Fjson-schema"," is suggested (needed by these\nassertions). The PHPStan extension declares the macro (",[349,3070,3071],{},"PHPStan\\RevisionSchemaAssertionExtension",[346,3073,3074,437,3077,1275,3079,437,3082,3084,3085,3087],{},[349,3075,3076],{},"HeaderResolver::DEFAULT_NAME",[349,3078,1692],{},[349,3080,3081],{},"QueryResolver::DEFAULT_NAME",[349,3083,626],{},"): the names they read\nwhen the ",[349,3086,1689],{}," option is not set.",[346,3089,3090,3091,437,3094,3097,3098,3101,3102,3105,3106,410,3109,410,3112,3115,3116,410,3119,3122,3123,3126,3127,3130],{},"Prune: ",[349,3092,3093],{},"Checking\\Prune",[349,3095,3096],{},"run($classes)",": a ",[349,3099,3100],{},"Checking\\PruneReport"," of the ",[349,3103,3104],{},"Checking\\PruneCandidate","s\n— ",[349,3107,3108],{},"until(P)",[349,3110,3111],{},"was(P)",[349,3113,3114],{},"since(P)"," of the oldest revision ",[349,3117,3118],{},"P",[349,3120,3121],{},"Checking\\PrunedDeclaration"," — and the classes that\ndid not build), ",[349,3124,3125],{},"Checking\\DeclarationLocator"," (the file and line of a field key, by reflection). ",[349,3128,3129],{},"php artisan revision:prune"," lists them, relative to the application, and always succeeds.",[346,3132,3133,3136,3137,3140,3141,3143,3144,3146,3147,3150,3151,328],{},[349,3134,3135],{},"Export\\JsonSchemaExporter::objects()",": a document ready for ",[349,3138,3139],{},"json_encode()",". Fixed: ",[349,3142,579],{}," wrote an\n",[349,3145,1883],{}," field as ",[349,3148,3149],{},"[]"," instead of ",[349,3152,3153],{},"{}",[346,3155,3156,3159,3160,3163,3164,3167],{},[349,3157,3158],{},"Checking\\CheckContext::$classes"," (every class of the run), ",[349,3161,3162],{},"revision()"," (a case by its backed value) and ",[349,3165,3166],{},"export()","\n(the JSON Schema of the checked class from the shapes of the run).",[338,3169,3171],{"id":3170},"changed","Changed",[343,3173,3174,3200,3215,3224],{},[346,3175,3176,373,3180,3182,3183,3186,3187,3150,3190,3192,3193,3196,3197,3199],{},[3177,3178,3179],"strong",{},"Breaking:",[349,3181,355],{}," runs ",[3177,3184,3185],{},"before"," the value is read, after the presence conditions: a field refused is never\nread (its source closure never called), normalized, projected nor converted. Its closure receives\n",[349,3188,3189],{},"($subject, string $attribute)",[349,3191,968],{},": the subject of the level (the model a resource\nwraps, an object's value for its children, a list's element for its items) and the key read (the source key or\npath, else the declared key; ",[349,3194,3195],{},"*"," for an item). A composite's ",[349,3198,355],{}," no longer receives its projected children.\nA condition on the value reads the attribute on the subject.",[346,3201,3202,3204,3205,3208,3209,1479,3212,3214],{},[349,3203,1937],{}," no longer calls ",[349,3206,3207],{},"get_object_vars()"," on every read: an initialized public property\nis read directly (the properties of a class listed once by reflection), a dynamic one found with\n",[349,3210,3211],{},"property_exists()",[349,3213,3207],{}," decides only the rare cases (uninitialized, lazy, non-public, internal\nclasses). Same outputs; an Eloquent model no longer keeps a property table per instance read.",[346,3216,3217,3218,3220,3221,3223],{},"A descriptor that does not match its shape (missing, or a composite on one side only) throws\n",[349,3219,1589],{}," when the projection is planned, even when its value is ",[349,3222,388],{},"; it threw\nonly on a non-null value.",[346,3225,3226,3229,3230,3232,3233,3236],{},[349,3227,3228],{},"CompiledShapes::load()"," no longer walks the compiled file: an entry is checked when first read, and an invalid one\n(",[349,3231,388],{}," included) throws ",[349,3234,3235],{},"CacheException::invalidFile()"," then; a cached shape loads neither its declaring class nor\na descriptor.",{"title":3238,"searchDepth":3239,"depth":3239,"links":3240},"",3,[3241],{"id":332,"depth":3242,"text":336,"children":3243},2,[3244,3245],{"id":340,"depth":3239,"text":341},{"id":3170,"depth":3239,"text":3171},"md",{},true,"# Changelog\n\nAll notable changes to this project are documented in this file.\n\nThe format is based on [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002Fen\u002F1.1.0\u002F), and this project adheres to\n[Semantic Versioning](https:\u002F\u002Fsemver.org\u002Fspec\u002Fv2.0.0.html).\n\n## [Unreleased]\n\n### Added\n\n- `Descriptor::unless(Closure)`: the negation of `when()`.\n- `Export\\RegexPattern::of()` and `Export\\DatePattern::of()` are public contract (no longer `@internal`): a\n  generator gets the ECMA `pattern` `JsonSchemaExporter` writes for a string pattern, or for a date format JSON\n  Schema does not name (`Y-m-d`, RFC 3339 and RFC 3339 extended export `format`), `null` when there is none.\n- `Checking\\Checker::forClasses(ClassFinder)`: the checker the provider binds on a subset of the classes, every\n  built-in, Laravel and tagged rule included, so a consumer's own check command does not rebuild the list;\n  `CheckContext::$subset` tells a check it runs on a subset, and `LockMismatch` then reports no locked class gone.\n- Automatic date ↔ date-time conversions (`Conversion\\BuiltIn\\DateTimeToDate`, `DateToDateTime`), lossless in\n  both directions: a date-time that was a date (or a date that was a date-time) needs no `down:` \u002F `up:` any more.\n  The day is written in the timezone of the value (never shifted to UTC); a date becomes midnight of its day. A\n  date-time sent where the head is a date warns `conversion-lossy` (its time is dropped).\n- Descriptor macros: `Schema\\DescriptorMacros::register($name, Closure)` adds a fluent method to every descriptor,\n  served by `Descriptor::__call()` (`Schema::string()->whenInFields('notes')`). The closure receives the descriptor,\n  then the arguments, and must return an instance of the descriptor's class; a name `Descriptor` declares is refused\n  and a public method of the descriptor's own class wins. New `DefinitionException::invalidMacroName()`, `unknownMacro()`\n  and `invalidMacroResult()`. PHPStan: `apiRevisions.macros` maps each name to its static method\n  (`PHPStan\\DescriptorMacrosExtension`), typed with the method's parameters after the descriptor and returning the\n  receiver's type.\n- Projection plan: `Projection\\Projector::plan(Shape, descriptors, ?keys)` resolves a projection once per render into a\n  `Projection\\ProjectionPlan`, run per subject (`run($subject)`); `keys` keeps those head keys of the top level\n  (a sparse fieldset). `Projector::project()` runs through it.\n- Paths in a projection plan: a `keys` entry of `Projector::plan()` may be a dotted path of head keys (`address.city`,\n  `tags.*.name`), keeping only that member of an object or of each item of a list; a member left out is never\n  evaluated (source, conditions, conversions, value errors). A shorter path wins; a path into a field converted at\n  the revision, a list through a key, a resource or a scalar keeps the field whole; a head key of the top level holding\n  a dot is still kept whole.\n- `RevisionedResource::collection()` returns a `Laravel\\Resources\\RevisionedResourceCollection`: `toArray()` runs\n  once per render on a template instance and every item goes through one plan (about 4.5 times faster on the\n  benchmark). A resource whose structure depends on its model in plain PHP opts out with\n  `static revisionedPerSubject(): bool` returning `true`; plain values and native conditions keep the per-item path.\n- Benchmark: a `lookup` scenario keeps `Shapes::for()` on a cached class at one array read and one `unserialize()`\n  (against the bare `unserialize()` of the same entries).\n- `Checking\\Declarations`: the discovered classes with their declaration kinds (`declarations()`), or those existing at\n  one revision (`at()`), resolvable from the container.\n- Public contract under semver from 1.0, named in `docs\u002Farchitecture.md` §4: the definition model, `Shape`,\n  `JsonSchemaExporter::export()` \u002F `objects()`, the structure of `revision:export`, `Changelog::changes()` \u002F\n  `markdown()` with `Change` \u002F `ChangeKind`, `ClassFinder` and `Declarations`.\n- Documentation: the README (install, the enum, a resource, a request, resolution, check and lock in CI, retiring a\n  revision, outside HTTP, testing) and the guide `docs\u002Fguide.md`, covering every feature.\n- Without configured enum (`revisions.enum` left `null`), the library works on the implicit one-case\n  `Revisions\\Unrevisioned` (`head`): resources render, requests validate and every command succeeds, with no history;\n  the `revision` middleware resolves nothing and adds no revision header, a queued job captures no revision,\n  `revision:changelog` has no change to list (as for any one-case enum without `--from` \u002F `--to`), `revision:lock`\n  locks nothing, a job captured earlier runs in the head. A `default` other than `latest` \u002F `oldest` without enum is\n  refused; `Route::revisioned()` and `withRevision()` throw, naming the missing enum.\n- Checks contributed by a package or an application: a `Checking\\Check` tagged\n  `Laravel\\RevisionsServiceProvider::CHECKS` (`'revisions.checks'`) is built by the container and run after the built-in\n  checks by `revision:check` and `assertRevisionsAreConsistent()`; a tagged service that is not a `Check` throws\n  `ConfigurationException::notACheck()`.\n- `Conversion\\Converters::identity(string $name)` (and `isIdentity()`): a custom type declares, in its\n  `DeclaresConversions::conversions()`, that its values do not depend on its fragment. A `was(schema:)` changing only\n  its fragment then plans no conversion step (no `conversion-missing`), still shown in the export, the lock and the\n  changelog; such a type is exported in place rather than as a `$defs` component, so two of its fragments in one\n  revision never conflict. `Compilation\\Shapes::converters()` gives the registry the shapes are planned against.\n- Class lifetime: a `Revisioned` class implementing `Schema\\HasLifetime` (`static revisionedLifetime(): Lifetime`,\n  with the new `Lifetime::since(R)` \u002F `Lifetime::until(R)`) exists only in those revisions; `Schema\\ClassLifetime::exists()`\n  tells whether it exists at a revision. Compiling it elsewhere throws `DefinitionException::classAbsent()`. The\n  check, `revision:cache`, `revision:export`, the lock and `assertRendersAtEveryRevision()` skip the revisions it does\n  not exist in (a lock file lists the classes existing at its revision); the changelog lists the class added and\n  removed. New check code `resource-absent`: a visible `Schema::resource()` field nesting a class absent at its\n  revision. A locked revision holding a class now absent there is a `lock-mismatch`.\n- A class implementing `Schema\\Revisioned` itself, without the Laravel traits, is a supported path (compiled, cached,\n  checked, locked, exported); `Revisioned::describeRevisioned()` is no longer `@internal`, and may build the\n  declaration on the implementer's own stand-in instead of the `Probe`.\n- Agent skill `skills\u002Flaravel-api-revisions\u002F`, shipped with the package: `SKILL.md` (the rules that prevent most\n  mistakes, such as the writing rule of the bounds and the value a `down:` closure receives), `reference.md` (every\n  public entry point) and `recipes.md` (tested examples of the common tasks).\n- Package skeleton: `Ark4ne\\ApiRevisions\\Laravel\\RevisionsServiceProvider`, auto-discovered by Laravel.\n- Revisions: the `Revisions\\Revision` contract and the `Revisions\\IsRevision` trait for an application's revision enum\n  (`isBefore()`, `isAfter()`, `isAtLeast()`, `isAtMost()`, `previous()`, `next()`, `latest()`, `oldest()`), ordered by\n  its explicit `order()`, never by declaration or backed value; string- and int-backed enums.\n- `#[Revisions\\Meta]` on a revision case (`description`, `publishedAt`, `deprecatedAt`, `sunsetAt` as `Y-m-d` days,\n  checked when read), `Revision::meta()` (an empty `Meta` when absent), `Meta::isDeprecated()` \u002F `isSunset()` from\n  their day included; `DefinitionException::invalidMetaDate()` \u002F `invalidMeta()`.\n- Current revision: `Revision::current()` (the innermost `using()`, else the revision of the context, else the head)\n  and `Revision::using($revision, $callback)` (restores the previous revision, even when the callback throws; render inside the callback);\n  `Revisions\\RevisionScope`, the only holder of the current revision, found through `RevisionScope::provider()`.\n- Schema vocabulary: `Schema\\Schema::string()`, `int()`, `float()`, `bool()` returning `StringSchema` (`min()`,\n  `max()`, `format()`, `pattern()`), `IntSchema` \u002F `FloatSchema` (`min()`, `max()`), `BoolSchema`; every descriptor\n  (`Schema\\Descriptor`, the extension base) has a lazy source (the declared key, a key or dotted path, or a closure\n  `($value, $subject)`; an evaluated value throws `DefinitionException::eagerSource()`), `nullable()`, `required()`,\n  `sometimes()`, `describe()`, `example()`, `deprecated()`, `rules()`, and returns a new instance on every modifier.\n- `normalize()` \u002F `serialize()` of the scalars; a refused value is returned as a `Schema\\InvalidValue`\n  carrying its lenient cast. An evaluated source is refused even in a file without `strict_types`.\n- `Schema::date()` \u002F `dateTime()` (`DateSchema` \u002F `DateTimeSchema`, `format()`, else the configured default: `Y-m-d`\n  and RFC 3339) and `Schema::enum(BackedEnum::class)` (`EnumSchema`: the case or its backed value, serialized as the\n  backed value; its type exports the enum, its backing kind and its values).\n- `Schema::list(Descriptor $items, $source)` (`ListSchema`, `min()` \u002F `max()` on the size; any `iterable` normalized\n  to a list) and `Schema::object(array\u003Cstring, Descriptor> $children, $source)` (`ObjectSchema`, its value is the\n  subject of its children; serialized as a JSON object even when empty), nested freely; `configure()` reaches items\n  and children; the children are projected before the composite's own conversions. An object without\n  source reads its children on the parent's subject (`Schema\\Source::parent()`). `TypeDefinition` exports `items` and\n  `children`.\n- `Schema::rule(array $rules, $source)` (`RuleSchema`, the escape hatch: kind `Any`, any value rendered as it is) and\n  `Schema\\DescribesSchema`: a rule object implementing it adds its JSON Schema keywords to the type of the field it is\n  declared on (`TypeDefinition::$jsonSchema`), whatever the descriptor; non JSON-ready keywords throw\n  `DefinitionException::invalidJsonSchema()`.\n- Conditions on every descriptor: `when(Closure $condition)` (called `($value, $subject)` after normalization) and\n  `whenHas(?string $key)` (a `Schema\\Presence`, checked before the source; `DefinitionException::invalidPresenceKey()`);\n  `isConditional()`, `conditions()`, `presences()`.\n- Lifetime of a field: `Descriptor::since(Revision, $default)` (from the revision included; a default for older\n  clients, `Support\\Undefined` when none) and `until(Revision)` (up to the revision included), read as\n  `Definition\\Lifetime` (`covers(Revision)`); a `since` newer than the `until` throws\n  `DefinitionException::invertedLifetime()`; a bound set twice keeps the last call and is recorded\n  (`Descriptor::repeatedBounds()`).\n- Groups: `Schema::since(Revision, array $fields, $default)` and `Schema::until(Revision, array $fields)` return the\n  array with each member bounded, to spread with its string keys (in a declaration or in `Schema::object()`); a\n  member's own narrower bound and own default win, a wider one throws `DefinitionException::sinceOlderThanGroup()` \u002F\n  `untilNewerThanGroup()`; a group never records a repeated bound.\n- Conversions: `Definition\\Direction` (`Down`, `Up`), the `Conversion\\Converter` strategy (`convert()`, `lossless()`,\n  `extraRules()`) and the `Conversion\\Converters` registry keyed by `(from Kind, to Kind, Direction)`\n  (`builtIn()`, `register()` with a factory receiving both types, `find()`, `key()`), with the built-ins in both directions (`Conversion\\BuiltIn\\*`: int ↔ float \u002F string \u002F bool, float → string \u002F int, bool → string \u002F\n  int, string → bool, enum ↔ backed value); `Exceptions\\ConversionException::invalidEnumValue()`.\n  `Converter::convert($value, $subject = null)`: only a closure reads the subject.\n- Explicit conversions: the `Conversion\\ExplicitConverter` marker (never warned `conversion-lossy`),\n  `Conversion\\ClosureConverter` (a `down:` \u002F `up:` closure `($value, $subject)`) and `Conversion\\Cast::round()`,\n  `floor()`, `ceil()` (float → int, a `Conversion\\Rounding`). A float → int conversion (`FloatToInt` included) of\n  a float outside the int range throws `ConversionException::outOfIntRange()`.\n- Custom types: `Schema\\TypeRegistry` (`register($name, MoneySchema::class)` at boot, `has()`, `make()`, `flush()`;\n  static like Laravel's macros) served by `Schema::__callStatic()` (`Schema::money('total')`);\n  `TypeDefinition::custom($name, $fragment)` (`Kind::Custom`, the name the type declares, its JSON Schema fragment in\n  `fragment`, apart from the rule keywords of `jsonSchema`); `DefinitionException::unknownType()`, `invalidTypeName()`,\n  `invalidCustomType()`, `invalidTypeFragment()`.\n- PHPStan extension (`extension.neon`, registered for `phpstan\u002Fextension-installer`): the custom types mapped in\n  `apiRevisions.types` are static methods of `Schema` typed with their class and their constructor's parameters\n  (`PHPStan\\CustomTypesExtension`).\n- Conversion chains: `Conversion\\ConversionChain` (`empty()`, `withStep()`, `bind()`, `apply($value, $subject)`,\n  `stepOf()`, `missing()`, `isEmpty()`), the steps of one field at one revision in one direction, planned from types and\n  references only (`Conversion\\ConversionStep`, `Conversion\\StepKind`: registered, explicit, missing) so it\n  serializes; two types holding the same values add no step; `ConversionException::missing()` when a step without\n  converter is applied.\n- Shapes: `Compilation\\ShapeSelector::at($head, $revision, $direction, $converters)`, the one function giving the\n  `Compilation\\Shape` of a revision (`names()`, `field()`, the fields added later for a request, the name\n  `Compilation\\Collision`s): per visible field a `Compilation\\FieldDefinition` (name, type, nullable, required,\n  sometimes, conditional, default and lifetime at the revision, its `Compilation\\FieldVersion` at every applicable\n  `was()`, its unbound conversion chain in the direction of the shape, the items of a list, the children of an object as\n  a nested `Shape`), every omitted `was()` argument inherited from the next newer shape. Closure-free and serializable.\n- Compilation: `Schema\\Revisioned` (static `declarationKinds()` and the `@internal` bridge\n  `describeRevisioned(DeclarationKind, $subject)`: the probe at compilation, the value of a nested resource at\n  projection), `Schema\\DeclarationKind` (`Response`, `RequestBody`,\n  `RequestQuery`; `direction()`), `Compilation\\Probe` (throws `DefinitionException::subjectReadAtCompilation()` on any\n  access), `Compilation\\Compiler::compile($class, $kind, $revision)` (configured descriptors, the shape of the\n  revision naming its class and kind: `Shape::$class`, `Shape::$kind`); `DefinitionException::notRevisioned()`,\n  `undeclaredKind()`, `invalidDeclaration()`. `Descriptor::configured()` configures a descriptor and the schemas of its\n  `was()`; composites configure their parts through it.\n- Projection: `Projection\\Projector::project(Shape, $descriptors, $subject)` (built with the `Configuration`, the\n  `Converters` and a `Projection\\SourceReader`) renders the visible fields of a shape under their name at its\n  revision: presence conditions, source (a renamed field reads its head key), normalization, `when()` (kept on `true`),\n  down chain bound to the fresh descriptors, serialization by the type in force at the revision; `null` skips\n  normalization and conversions. `SourceReader::read()` (keys and dotted paths on arrays, `ArrayAccess`, public\n  properties, `__get()` without `isset()`), `has()`, `peek()` (no side effect). `Exceptions\\ValueException`\n  (`refused()`, `nullNotAllowed()`, `unconvertible()`; `class`, `field`, `revision`; never the value);\n  `DefinitionException::missingDescriptor()`.\n- Upgrade: `Upgrade\\Upgrader::upgrade($shape, $descriptors, $input, ?$hook)` takes a validated input of a request\n  shape's revision to the head, step by step: renames and `up` conversions of each `was()` read from a snapshot of the\n  step (values normalized to the type of the step first), the `Upgrade\\UpgradesInput` hook, the defaults of the fields\n  added in the newer revision (never over an explicit `null`), the fields retired dropped; converted and defaulted\n  values serialized back to raw values, the result in the head order; a response shape throws\n  `DefinitionException::notAnUpShape()`. `FieldVersion::$schemaChange` and `FieldDefinition::nameAt()` give the\n  descriptor in force and the name at a revision. Objects, lists and nested resources are upgraded too, in the same\n  step as their parent; the `Upgrader` takes an optional `Shapes` for the nested resources.\n- Laravel: `config\u002Frevisions.php` (publish with `--tag=revisions-config`), validated lazily by\n  `Laravel\\RevisionsConfig` (`Exceptions\\ConfigurationException`); the service provider binds the core\n  `Configuration`, one `Shapes`, the `RevisionScope` of each request (`scoped`, its base the configured fixed default\n  outside a request) and the `ValueErrorHandler` (`strict_values`, `null` following `app.debug`; lenient errors\n  reported once per class and field and request).\n- Resolvers: the `Laravel\\Http\\RevisionResolver` contract (`resolve(Request): ?Revision`), `HeaderResolver`\n  (`name`, `Api-Revision`), `QueryResolver` (`name`, `revision`) and `PathResolver` (`parameter`, `revision`) in\n  `Laravel\\Http\\Resolvers`, chained by `ResolverChain` (a `scoped` binding built from `revisions.resolvers`, each\n  resolver made by the container with its options as named arguments; the first revision wins, then `default`: a fixed\n  revision, or a resolver class whose `null` gives the head). A value naming no revision throws\n  `Exceptions\\UnknownRevisionException` (the value and the accepted ones). `RevisionsConfig` refuses a resolver or a\n  class `default` not implementing `RevisionResolver`; `resolvers` defaults to the header resolver.\n- Middleware `Laravel\\Http\\ResolveRevision` (alias `revision`): resolves the revision of the request through the\n  `ResolverChain`, makes it the request's current revision, and adds the `response_header`, `Vary` on the revision\n  headers, `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) from the revision's `#[Meta]`; an unknown revision is\n  answered 400 with `{message, revision, accepted}`. `UnknownRevisionException` cuts the value it echoes to 64\n  characters. A resolver reading request headers implements the optional `Laravel\\Http\\VariesOn` contract\n  (`headers()`, implemented by `HeaderResolver`): `ResolverChain::headers()` collects them for `Vary`.\n- Path mode: the route macro `Route::revisioned(fn (Router $router) => …)` (`Laravel\\Routing\\RevisionedRoutes`)\n  prefixes its routes with `{revision}` (the `parameter` of the configured `PathResolver`, required:\n  `ConfigurationException::pathModeWithoutResolver()`), constrained to the revision values, under the `revision`\n  middleware; the middleware forgets the parameter and sets it as a URL default, so controllers never receive it and\n  generated URLs keep the revision. `PathResolver::parameter()`, `ResolverChain::parameters()`,\n  `RevisionsConfig::pathParameter()`. `extension.neon` declares the macro to PHPStan (`PHPStan\\RevisionedRouteExtension`;\n  `PHPStan\\CustomTypeMethod` becomes `PHPStan\\DeclaredMethod`).\n- `Laravel\\Resources\\RevisionedResource`, the trait of a revisioned `JsonResource`: `toArray()` returns descriptors,\n  `resolve()` projects them on the model at the current revision, in the order of `toArray()`; `with()`,\n  `additional()`, wrapping, collections and pagination unchanged; implements the `Revisioned` bridge (a response).\n  A plain value is rendered as it is (a nullable `any` in the shape: `Schema\\EagerSchema`); a native `when()`,\n  `whenLoaded()` or `mergeWhen()` is honoured at run time and kept out of the shape; `Arrayable` values are rendered as\n  arrays; lenient value errors are reported. The `Projector` is bound in the container (`scoped`).\n- `Descriptor::whenLoaded('relation')` (dotted for a nested relation, `Schema\\Presence::loaded()`): the field is kept\n  only when the relation is loaded, checked before the source; on a subject without relations, the key is present.\n- `Projection\\SourceReader` is now an interface (`read()`, `has()`, `peek()`, `loaded()`), implemented by\n  `Projection\\PlainSourceReader` (the former class) and decorated for Eloquent by\n  `Laravel\\Resources\\EloquentSourceReader` (attributes present in `getAttributes()`, relations loaded, never a lazy\n  load).\n- Validation rules of a request shape: `Laravel\\Validation\\RuleCompiler::compile($shape, $descriptors)` (bound in the\n  container) gives the Laravel rules under the names of the client's revision (dotted for children and nested\n  resources, `.*` for items): `sometimes` \u002F `required` \u002F `nullable` as declared, the rules of the type (one\n  `Laravel\\Validation\\RuleMapper` per kind, replaceable: string length, pattern and known formats, `integer` \u002F\n  `numeric`, `boolean`, `date_format:`, Laravel's `Enum`, `list` \u002F `array`), those of the first up conversion\n  (`numeric`, `integer`, the values of an enum), then the descriptor's `rules()` as given. A required child of a parent\n  the client may leave out gets `required_unless:\u003Cparent>,null`. `DefinitionException::rulesOfAResponse()`,\n  `unknownKind()` (a mapper keyed by no kind).\n- `Laravel\\Requests\\RevisionedRequest`, the trait of a revisioned `FormRequest`: the head body in `body()`, the head\n  query parameters in `queryParameters()`, the `protected upgrade()` hook on the body; `rules()` validates the input\n  in the client's revision under its names, then the input is upgraded to the head, which `validated()` \u002F `safe()`\n  return (`input()` \u002F `all()` keep the input as sent). A name declared in both the body and the query at a revision\n  throws `DefinitionException::declaredTwice()`. The `Upgrader` is bound in the container (singleton).\n- A value the upgrade rejects is a validation error on the client's key: the upgrader throws\n  `Exceptions\\InvalidInputException` (`key`, `reason`) for a `ConversionException` or a `ValueException` (instead of\n  the exception itself); an `up:` closure rejects an input with `ConversionException::invalid($message)`, its message\n  being the error; any other rejection gets Laravel's `validation.in` message. `ConversionException::missing()` stays\n  a declaration error (`ConversionException::$declarationError`), as do the other exceptions of a closure .\n- Queued jobs outside HTTP: a job implementing the marker interface `Laravel\\Queue\\CapturesRevision` runs in the\n  revision current when it was dispatched (`handle()`, its middleware and `failed()` inside `using()`, the `sync` queue\n  included); the payload stores the backed value under `ark4ne:revision`. A revision the enum no longer knows fails the\n  attempt with `UnknownRevisionException`, and `failed()` runs in the base revision. Other jobs run in the base\n  revision.\n- Compiled shapes: `php artisan revision:cache` (run by `php artisan optimize`) compiles every declaration kind of every\n  class implementing `Revisioned` found under `discovery.paths` (plus `discovery.classes`) at every revision, and\n  writes `cache_path` (`bootstrap\u002Fcache\u002Frevisions.php`); `revision:clear` (run by `optimize:clear`) removes it.\n  `Compilation\\CompiledShapes` reads and writes the file (`load()`, `write()`, `get()`; one serialized shape per\n  `class@kind@revision`, unserialized on first use), `Shapes` takes it as its second argument and reads it before\n  compiling; `Laravel\\Discovery\\PathClassFinder` finds the classes; `Exceptions\\CacheException`. Changing the date\n  formats, a declaration or a custom type requires `revision:cache` again, as for `route:cache`.\n- Benchmark gate: `composer benchmark` (`bin\u002Fbenchmark.php`, reference `bin\u002Fbenchmark\u002Freference.json`, `--update`)\n  compares the projection at the head and at the oldest revision with a plain `JsonResource` (time and memory ratios,\n  10 % tolerance); run in CI. A projection costs about ×19 the time of the plain resource: `TypeRegistry::converters()`\n  without argument is built once until the next `register()` or `flush()`, the projector configures only the\n  serializer's own defaults (`configure()`), and a `was()` inserts its change without sorting the history.\n- Value errors: `Projection\\ValueErrorHandler` with `StrictValues` (throws) and `LenientValues` (an optional reporter;\n  renders the cast of a refused value as it is, `null` for a failed conversion or a non-nullable `null`), given to\n  the `Projector` or chosen from `Configuration::$strictValues` (`true` by default); a non-nullable field or item\n  resolving `null` is a value error.\n- Nested projection: objects project their head children on their value (or the parent's subject), lists each item\n  (an item whose condition fails is dropped), a `Schema::resource()` the shape of its class at the\n  same revision with its descriptors built on the value (`Projector` takes an optional `Shapes`); the composite's\n  `when()` \u002F `down:` receive the projected children. `FieldDefinition::$children` \u002F `$items` are those of the head\n  composite at `FieldDefinition::$headAt`, the revision after its newest `was(schema:)`.\n- Shapes repository: `Compilation\\Shapes` (built with a `Compiler`, the default one by default), `for($class, $kind,\n  $revision)` compiling each `(class, declaration kind, revision)` once, `flush()`.\n- Nested resources: `Schema::resource(class-string\u003CRevisioned>, $source)` (`Schema\\ResourceSchema`, `class()`;\n  `DefinitionException::notRevisioned()` for another class): an `Object` kind referencing the class\n  (`TypeDefinition::$resource`, `withResource()`), never a copy of its shape, so cycles compile. The nested shape is\n  the class's declaration of the same kind at the same revision: the compiler refuses a nested class\n  that does not declare it (`undeclaredKind()`). Two types referencing different classes hold other values:\n  changing the referenced class needs a converter (a missing step otherwise).\n- Conversions of custom types: a custom type implementing `Schema\\DeclaresConversions` registers its conversions\n  (`conversions(Converters): Converters`); `TypeRegistry::converters()` gives the built-in registry with those of every\n  registered type, to give to `ShapeSelector::at()`. `Converters::register()` takes a custom type's name as a\n  side (`Kind::Custom` and an empty name throw `DefinitionException::invalidConversionSide()`); `Converters::keyOf()` keys a custom type by its name (`custom(money)>float:down`), so two custom types never\n  overwrite each other.\n- Defaults: `Configuration::$missingDefault` (`Configuration\\MissingDefault::Error`, the default, or `Null`); with\n  `Null`, a `required()->since(R)` field declared without `default:` gets `null` as default in the shapes\n  (`ShapeSelector::at(..., configuration:)`), an optional one keeps none.\n- History: `Descriptor::was(Revision, name:, schema:, down:, up:)` (`down:` \u002F `up:` a closure, kept as a\n  `ClosureConverter`, or a `Cast`) adds a `Schema\\Change` to the field's\n  `Schema\\History` (its lifetime and its changes, newest first whatever the call order; `Descriptor::history()`);\n  no effect on the head type. `DefinitionException::invalidHistory()` (a `was()` on the head, twice on a revision),\n  `emptyHistoryName()`, `emptyChange()` (a `was()` changing nothing) and `sourceInHistory()` (a `schema:`, its items\n  or children with a source, a lifetime, a history, a default or a condition).\n- `Configuration\\Configuration` (`dateFormat`, `dateTimeFormat`), given to descriptors by `Descriptor::configure()`.\n- `Definition\\TypeDefinition` and `Definition\\Kind`, the type of a field as read by the tools.\n- `Revisions\\RevisionOrder`: `index()`, `compare()`, `previous()`, `next()`, `latest()`, `oldest()`, `between()`.\n- `Exceptions\\RevisionsException`, marker of the package exceptions, and `Exceptions\\DefinitionException`\n  (`mixedRevisions()` when revisions of two enums are compared, `foreignRevision()` when a revision of another enum\n  is used or current, `invalidOrder()` when `order()` misses a case, lists one twice, lists a foreign case, is not a\n  list or is empty).\n- Check foundations: `Support\\Diagnostic` (`code`, `severity`, `class`, `field`, `revision` as its backed value,\n  `message`, `isError()`), `Support\\Severity` (`Error`, `Warning`) and `Support\\Diagnostics` (collected in order,\n  `errors()`, `warnings()`, `hasErrors()`, countable and iterable); `Checking\\Check` (one rule, run once on the revision\n  enum then once per declaring class), `Checking\\CheckContext` (the target, its shapes, `error()` \u002F `warning()`),\n  `Checking\\Checker` (runs the checks with a fresh `Shapes` per run) and the `Checking\\ClassFinder` contract,\n  implemented by `Laravel\\Discovery\\PathClassFinder`; `DefinitionException::noShapeForRevisions()` when a check asks a\n  shape of the enum, `foreignRevision()` for a diagnostic on a revision of another enum.\n- Check rules: `Checking\\Checker::builtIn()` — `Checks\\OrderMissingCase`, `OrderDuplicateCase`,\n  `BoundRepeated` (warning), `HistoryBeforeSince`, `HistoryAfterUntil`, `ConversionMissing`, `ConversionLossy`\n  (warning), `NameCollision` (also a name in both the body and the query of a request), `RequiredSinceWithoutDefault`\n  (none under `missing_default: null`), `EagerValue`; `Laravel\\Checking\\NativeCondition` (warning). A\n  `DefinitionException` of a descriptor in a `RevisionedResource::toArray()` is no longer wrapped in `failedDescribing()`. Before its rules,\n  the checker builds each class (descriptors, shapes at every revision): anything thrown is one error under the code\n  of its `DefinitionException` (`DefinitionException::$checkCode`: `lifetime-inverted`, `since-older-than-group`,\n  `until-newer-than-group`, `history-unordered`, `unknown-resource`), else `definition-error`, and\n  the check goes on; an invalid `order()` stops it after the enum. `Compiler::describe()` (the configured\n  head descriptors) and `Compiler::converters()`; `CheckContext::order()`, `kinds()`, `descriptors()`, `converters()`.\n  `schema-override` comes with the export.\n- `php artisan revision:check` (`Laravel\\Console\\CheckCommand`): runs `Checker::builtIn()` plus `NativeCondition` on the\n  enum and every class of `discovery.paths` \u002F `discovery.classes`, with the application's configuration; a table of\n  diagnostics (`--format=json` for CI tools), fails on an error, warnings alone pass; `--list` prints the discovered\n  classes. The container binds `Checking\\ClassFinder` (`PathClassFinder` over the discovery, also used by\n  `revision:cache`) and `Checking\\Checker`. `Support\\Diagnostic::toArray()`.\n- `Testing\\InteractsWithRevisions` for an application's `TestCase`: `assertRevisionsAreConsistent()` fails with every\n  diagnostic when one is an error.\n- JSON Schema export: `Export\\JsonSchemaExporter` (draft 2020-12; `export($class, $kind,\n  $revision)`, `visit(Shape)`, `typeKeywords()`), implementing the `Export\\SchemaVisitor` contract: one document per\n  class, kind and revision, its revision `meta()` in `$comment`; types and constraints, enum values, nullable (`null`\n  in `type` \u002F `enum`, or `anyOf`), `required` (a response field unless conditional, a request field `required()`\n  without `sometimes()`), descriptions, examples, `deprecated`, custom fragments, dates in their wire format (a\n  `pattern` for a numeric PHP format), the `DescribesSchema` keywords last; nested resources in `$defs`\n  (`$ref`, cycles included); objects open. `php artisan revision:export {--revision=} {--class=}` prints it as JSON.\n- A `pattern()` is exported without its delimiters when its flags are `u` \u002F `D` only, otherwise described in `$comment`. `Definition\\TypeDefinition::$nullable` (`withNullable()`): the nullability of the items and children of a\n  composite. The compiled-shapes cache format is now `2`: run `php artisan revision:cache` again after upgrading.\n- Check rule `schema-override` (warning, `Checking\\Checks\\SchemaOverride`, in `Checker::builtIn()`): a rule keyword\n  overriding a keyword of its field's type.\n- Lock of the published revisions: `Checking\\Lock` (one `\u003Cvalue>.json` per locked revision\n  under `lock_path`: the structure of every class and kind, documentation left out, keys sorted, and the revision\n  before it), `Checking\\LockedRevision`, `Exceptions\\LockException`. `php artisan revision:lock` writes the revisions\n  but the head that have no lock yet; `--revision=` (re)locks one, the head included. Check rules `lock-mismatch`\n  (per field, keyword, class or kind; a class or kind added only when it has fields there) and `lock-order-changed` (`Checking\\Checks\\LockMismatch`,\n  `LockOrderChanged`), added by the Laravel binding of the `Checker` over the configured `lock_path`.\n- Components: `Schema\\ObjectSchema::component($name)` names an object, a custom type is one under\n  its `TypeDefinition::custom()` name; each is defined once in the `$defs` of a document (`Export\\Components`) and\n  referenced `#\u002F$defs\u002F\u003Cname>` from every use, its body at the revision exported (so its history applies everywhere).\n  `Definition\\TypeDefinition::$component` (`withComponent()`); the compiled-shapes cache format is now `3` (run\n  `php artisan revision:cache` again). Two bodies under one name throw `DefinitionException::componentConflict()`\n  (`DefinitionException::$field`) and are reported by the check rule `component-conflict` (error,\n  `Checking\\Checks\\ComponentConflict`, in `Checker::builtIn()`). A custom type is now a `$ref` in the export instead\n  of its fragment inline.\n- Changelog: `Export\\Changelog` (`changes($class, $kind, $revision)`: what a revision changes\n  against the one before it, fields matched by their head key path through object children and list items;\n  `markdown($classes, $from, $to)`: newest first, each revision headed by its `meta()`), `Export\\Change`,\n  `Export\\ChangeKind` (added, removed, renamed, type changed). `php artisan revision:changelog {--from=} {--to=}`\n  prints it.\n- Test helpers: on `Testing\\InteractsWithRevisions`, `withRevision(Revision)` (a header, the route\n  parameter of path mode or the query, as the first resolver of the chain reads it) and\n  `assertRendersAtEveryRevision($class, $subject, ?$revisions)` (a head fixture projected at each revision and validated);\n  the `TestResponse` macro `assertMatchesRevisionSchema($class, ?Revision $revision)` (registered by the trait's\n  `setUpInteractsWithRevisions()`; the revision of the response header by default, the `data` of a wrapped body, a\n  list item by item) — `Testing\\TestResponseMacros`, `Testing\\RevisionSchema`. They validate against the export with\n  closed objects: `JsonSchemaExporter` takes `closed: true`. `opis\u002Fjson-schema` is suggested (needed by these\n  assertions). The PHPStan extension declares the macro (`PHPStan\\RevisionSchemaAssertionExtension`).\n- `HeaderResolver::DEFAULT_NAME` (`Api-Revision`) and `QueryResolver::DEFAULT_NAME` (`revision`): the names they read\n  when the `name` option is not set.\n- Prune: `Checking\\Prune` (`run($classes)`: a `Checking\\PruneReport` of the `Checking\\PruneCandidate`s\n  — `until(P)`, `was(P)`, `since(P)` of the oldest revision `P`, `Checking\\PrunedDeclaration` — and the classes that\n  did not build), `Checking\\DeclarationLocator` (the file and line of a field key, by reflection). `php artisan\n  revision:prune` lists them, relative to the application, and always succeeds.\n- `Export\\JsonSchemaExporter::objects()`: a document ready for `json_encode()`. Fixed: `revision:export` wrote an\n  `any` field as `[]` instead of `{}`.\n- `Checking\\CheckContext::$classes` (every class of the run), `revision()` (a case by its backed value) and `export()`\n  (the JSON Schema of the checked class from the shapes of the run).\n\n### Changed\n\n- **Breaking:** `when()` runs **before** the value is read, after the presence conditions: a field refused is never\n  read (its source closure never called), normalized, projected nor converted. Its closure receives\n  `($subject, string $attribute)` instead of `($value, $subject)`: the subject of the level (the model a resource\n  wraps, an object's value for its children, a list's element for its items) and the key read (the source key or\n  path, else the declared key; `*` for an item). A composite's `when()` no longer receives its projected children.\n  A condition on the value reads the attribute on the subject.\n- `Projection\\PlainSourceReader` no longer calls `get_object_vars()` on every read: an initialized public property\n  is read directly (the properties of a class listed once by reflection), a dynamic one found with\n  `property_exists()`; `get_object_vars()` decides only the rare cases (uninitialized, lazy, non-public, internal\n  classes). Same outputs; an Eloquent model no longer keeps a property table per instance read.\n- A descriptor that does not match its shape (missing, or a composite on one side only) throws\n  `DefinitionException::missingDescriptor()` when the projection is planned, even when its value is `null`; it threw\n  only on a non-null value.\n- `CompiledShapes::load()` no longer walks the compiled file: an entry is checked when first read, and an invalid one\n  (`null` included) throws `CacheException::invalidFile()` then; a cached shape loads neither its declaring class nor\n  a descriptor.\n",{"title":296,"description":311},"KbAN8_5y8K5ddhqKVmztwO10boY6u7pi6H3VCGhZUds",[3253,3255],{"title":284,"path":285,"stem":286,"description":3254,"children":-1},"Every exception the package throws, and when.",{"title":292,"path":293,"stem":294,"description":3256,"children":-1},"Breaking changes between major versions, and how to migrate. Nothing yet: the first release is 1.0.0.",1795438899904]