Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/sync master and release #3344

Merged
merged 19 commits into from
Sep 15, 2023
Merged

Fix/sync master and release #3344

merged 19 commits into from
Sep 15, 2023

Conversation

GauravGusain98
Copy link
Member

Changes

  • Sync master and release

@cypress
Copy link

cypress bot commented Aug 19, 2023

Passing run #7787 ↗︎

0 4 0 0 Flakiness 0

Details:

Merge 85d24ec into 6192c3b...
Project: Employee portal Commit: 1a0f170d83 ℹ️
Status: Passed Duration: 00:40 💡
Started: Sep 15, 2023 6:14 AM Ended: Sep 15, 2023 6:15 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.


$reportData = $this->service->getRevenueReportDataForClient($filters, $client);
$revenueReportService = new RevenueReportService;
$reportData = $revenueReportService->getRevenueReportDataForClient($filters, $client);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be easier if we make these static functions and then can directly call these like:

$reportData = RevenueReportService::getRevenueReportDataForClient($filters, $client);

Comment on lines 63 to 64
$revenueReportService = new RevenueReportService;
$reportData = $revenueReportService->getRevenueGroupedByClient($filters);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same feedback for this. Can be used as a static function.

@GauravGusain98
Copy link
Member Author

GauravGusain98 commented Aug 19, 2023

@rathorevaibhav getting this issue when using static class
image

@rathorevaibhav
Copy link
Member

@GauravGusain98 in your error screenshot, have you defined the function as static before calling it statically?

@GauravGusain98
Copy link
Member Author

@GauravGusain98 in your error screenshot, have you defined the function as static before calling it statically?

If I define it as static then I am getting this error
image

@rathorevaibhav
Copy link
Member

@GauravGusain98 static functions are called like this:

RevenueReportService::getRevenueGroupedByClient($filters);

// and not like
$this->getRevenueGroupedByClient($filters);

@Satendra-SR Satendra-SR merged commit 6bfd410 into master Sep 15, 2023
2 checks passed
@Satendra-SR Satendra-SR deleted the fix/sync-master-and-release branch September 15, 2023 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants