File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This projec
33
44## 4.0.2-dev
55
6+ ### Added
7+
8+ - Added PHP Runtime Generation version to ` env:info ` command output (#2714 )
9+
610## 4.0.1 - 2025-05-19
711
812### Fixed
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class InfoCommand extends TerminusCommand implements SiteAwareInterface
3636 * connection_mode: Connection Mode
3737 * php_version: PHP Version
3838 * drush_version: Drush Version
39+ * php_runtime_generation: PHP Runtime Generation
3940 * @param string $site_env Site & environment in the format `site-name.env`
4041 *
4142 * @return \Consolidation\OutputFormatters\StructuredData\PropertyList
@@ -67,6 +68,7 @@ public function getPropertyList(TerminusModel $model)
6768 unset($ properties ['drush_version ' ]);
6869 unset($ properties ['php_version ' ]);
6970 unset($ properties ['locked ' ]);
71+ unset($ properties ['php_runtime_generation ' ]);
7072 }
7173 return new PropertyList ($ properties );
7274 }
Original file line number Diff line number Diff line change @@ -683,6 +683,16 @@ public function getPHPVersion()
683683 : null ;
684684 }
685685
686+ /**
687+ * Gets the PHP runtime generation of this environment
688+ *
689+ * @return string
690+ */
691+ public function getPHPRuntimeGeneration ()
692+ {
693+ return $ this ->settings ('appserver_runtime ' )->php_runtime_generation ;
694+ }
695+
686696 /**
687697 * @return UpstreamStatus
688698 */
@@ -947,6 +957,7 @@ public function serialize()
947957 'initialized ' => $ this ->isInitialized (),
948958 'connection_mode ' => $ this ->get ('connection_mode ' ),
949959 'php_version ' => $ this ->getPHPVersion (),
960+ 'php_runtime_generation ' => $ this ->getPHPRuntimeGeneration (),
950961 ];
951962 }
952963
Original file line number Diff line number Diff line change @@ -310,6 +310,11 @@ public function testInfoCommand()
310310 $ envInfo ,
311311 'Environment info should have "php_version" field. '
312312 );
313+ $ this ->assertArrayHasKey (
314+ 'php_runtime_generation ' ,
315+ $ envInfo ,
316+ 'Environment info should have "php_runtime_generation" field. '
317+ );
313318 }
314319
315320 /**
You can’t perform that action at this time.
0 commit comments