Improve annotation in EmailEditor\Container

[MAILPOET-6216]
This commit is contained in:
Jan Lysý
2024-09-20 13:16:42 +02:00
committed by Jan Lysý
parent 7a793f11f1
commit a4e063f8fc

View File

@@ -10,6 +10,11 @@ class Container {
$this->services[$name] = $callable; $this->services[$name] = $callable;
} }
/**
* @template T
* @param class-string<T> $name
* @return T
*/
public function get(string $name) { public function get(string $name) {
// Check if the service is already instantiated // Check if the service is already instantiated
if (isset($this->instances[$name])) { if (isset($this->instances[$name])) {